mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes for unit testing
This commit is contained in:
parent
9b7a9a3ee0
commit
c13cee2407
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user