mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove old unit test
This commit is contained in:
parent
dd4db6442e
commit
28509dbd68
@ -269,25 +269,6 @@ class BuildTest(TestCase):
|
|||||||
|
|
||||||
self.assertTrue(self.build.areUntrackedPartsFullyAllocated())
|
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):
|
def test_cancel(self):
|
||||||
"""
|
"""
|
||||||
Test cancellation of the build
|
Test cancellation of the build
|
||||||
|
@ -1424,7 +1424,6 @@ function initializeRelatedField(field, fields, options) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// If a 'value' is already defined, grab the model info from the server
|
// If a 'value' is already defined, grab the model info from the server
|
||||||
if (field.value) {
|
if (field.value) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user