Remove old unit test

This commit is contained in:
Oliver 2021-10-05 00:48:03 +11:00
parent dd4db6442e
commit 28509dbd68
2 changed files with 0 additions and 20 deletions

View File

@ -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

View File

@ -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) {