From 0d660e3c6966933660b1a8abb7573b98b86f81f5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 19 Jul 2021 00:21:02 +1000 Subject: [PATCH] Unit test fixes (cherry picked from commit 787064abc096970b805821add983ab70a9ed9a87) --- InvenTree/company/tests.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/InvenTree/company/tests.py b/InvenTree/company/tests.py index e4a70b077a..79ffc34af5 100644 --- a/InvenTree/company/tests.py +++ b/InvenTree/company/tests.py @@ -192,18 +192,14 @@ class ManufacturerPartSimpleTest(TestCase): SKU='SKU_TEST', ) - kwargs = { - 'manufacturer': manufacturer.id, - 'MPN': 'MPN_TEST', - } - supplier_part.save(**kwargs) + supplier_part.save() def test_exists(self): - self.assertEqual(ManufacturerPart.objects.count(), 5) + self.assertEqual(ManufacturerPart.objects.count(), 4) # Check that manufacturer part was created from supplier part creation manufacturer_parts = ManufacturerPart.objects.filter(manufacturer=1) - self.assertEqual(manufacturer_parts.count(), 2) + self.assertEqual(manufacturer_parts.count(), 1) def test_delete(self): # Remove a part