mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Unit testing: fix PEP issues
This commit is contained in:
parent
fe3a72c6cc
commit
c1595396c4
@ -64,7 +64,7 @@ class StockTest(TestCase):
|
|||||||
|
|
||||||
# Add some stock items which are "building"
|
# Add some stock items which are "building"
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
item = StockItem.objects.create(part=part, quantity=10, is_building=True)
|
StockItem.objects.create(part=part, quantity=10, is_building=True)
|
||||||
|
|
||||||
# The "is_building" quantity should not be counted here
|
# The "is_building" quantity should not be counted here
|
||||||
self.assertEqual(part.total_stock, n + 5)
|
self.assertEqual(part.total_stock, n + 5)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user