From 5fe2fb615b97c9c58384c28c6eb9599786230aca Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 19 Apr 2022 20:41:08 +1000 Subject: [PATCH] Style fixes --- InvenTree/stock/test_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/InvenTree/stock/test_api.py b/InvenTree/stock/test_api.py index b99f1ed270..7f94c6dedf 100644 --- a/InvenTree/stock/test_api.py +++ b/InvenTree/stock/test_api.py @@ -219,13 +219,13 @@ class StockItemListTest(StockAPITestCase): without_batch = self.get_stock(has_batch=0) n_stock_items = StockItem.objects.all().count() - + # Total sum should equal the total count of stock items self.assertEqual(n_stock_items, len(with_batch) + len(without_batch)) for item in with_batch: self.assertFalse(item['batch'] in [None, '']) - + for item in without_batch: self.assertTrue(item['batch'] in [None, '']) @@ -234,7 +234,7 @@ class StockItemListTest(StockAPITestCase): Test the 'tracked' filter. This checks if the stock item has either a batch code *or* a serial number """ - + tracked = self.get_stock(tracked=True) untracked = self.get_stock(tracked=False) @@ -246,7 +246,7 @@ class StockItemListTest(StockAPITestCase): for item in tracked: self.assertTrue(item['batch'] not in blank or item['serial'] not in blank) - + for item in untracked: self.assertTrue(item['batch'] in blank and item['serial'] in blank)