From 28509dbd68c4c9498f7009fb248368fcfa26edd7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 5 Oct 2021 00:48:03 +1100 Subject: [PATCH] Remove old unit test --- InvenTree/build/test_build.py | 19 ------------------- InvenTree/templates/js/translated/forms.js | 1 - 2 files changed, 20 deletions(-) diff --git a/InvenTree/build/test_build.py b/InvenTree/build/test_build.py index 30fe8c488b..04b46bbd26 100644 --- a/InvenTree/build/test_build.py +++ b/InvenTree/build/test_build.py @@ -269,25 +269,6 @@ class BuildTest(TestCase): self.assertTrue(self.build.areUntrackedPartsFullyAllocated()) - def test_auto_allocate(self): - """ - Test auto-allocation functionality against the build outputs. - - Note: auto-allocations only work for un-tracked stock! - """ - - allocations = self.build.getAutoAllocations() - - self.assertEqual(len(allocations), 1) - - self.build.autoAllocate() - self.assertEqual(BuildItem.objects.count(), 1) - - # Check that one un-tracked part has been fully allocated to the build - self.assertTrue(self.build.isPartFullyAllocated(self.sub_part_2, None)) - - self.assertFalse(self.build.isPartFullyAllocated(self.sub_part_1, None)) - def test_cancel(self): """ Test cancellation of the build diff --git a/InvenTree/templates/js/translated/forms.js b/InvenTree/templates/js/translated/forms.js index 4034908073..ee30c4ea1c 100644 --- a/InvenTree/templates/js/translated/forms.js +++ b/InvenTree/templates/js/translated/forms.js @@ -1424,7 +1424,6 @@ function initializeRelatedField(field, fields, options) { } }); - // If a 'value' is already defined, grab the model info from the server if (field.value) {