Fixes for unit testing

This commit is contained in:
Oliver Walters 2020-10-19 23:31:52 +11:00
parent 9b7a9a3ee0
commit c13cee2407
2 changed files with 3 additions and 1 deletions

View File

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

View File

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