Unit testing: fix PEP issues

This commit is contained in:
Oliver Walters 2020-10-05 00:29:31 +11:00
parent fe3a72c6cc
commit c1595396c4

View File

@ -64,7 +64,7 @@ class StockTest(TestCase):
# Add some stock items which are "building"
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
self.assertEqual(part.total_stock, n + 5)