diff --git a/InvenTree/build/fixtures/build.yaml b/InvenTree/build/fixtures/build.yaml index 532d502098..0ac5d00a20 100644 --- a/InvenTree/build/fixtures/build.yaml +++ b/InvenTree/build/fixtures/build.yaml @@ -5,6 +5,7 @@ fields: part: 25 batch: 'B1' + reference: "0001" title: 'Building 7 parts' quantity: 7 notes: 'Some simple notes' @@ -20,6 +21,7 @@ pk: 2 fields: part: 50 + reference: "0002" title: 'Making things' batch: 'B2' status: 40 # COMPLETE diff --git a/InvenTree/build/tests.py b/InvenTree/build/tests.py index 92ca034a4a..ded98a441c 100644 --- a/InvenTree/build/tests.py +++ b/InvenTree/build/tests.py @@ -54,7 +54,7 @@ class BuildTestSimple(TestCase): self.assertEqual(b.batch, 'B2') self.assertEqual(b.quantity, 21) - self.assertEqual(str(b), '21 x Orphan') + self.assertEqual(str(b), 'BO0002') def test_url(self): b1 = Build.objects.get(pk=1)