Update fixtues for unit testing

This commit is contained in:
Oliver Walters 2020-11-01 15:34:42 +11:00
parent 95fadf1300
commit f1b83f1c17
2 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,7 @@
pk: 102 pk: 102
fields: fields:
part: 25 part: 25
batch: 'ABCDE'
location: 7 location: 7
quantity: 3 quantity: 3
level: 0 level: 0
@ -93,6 +94,7 @@
part: 10001 part: 10001
location: 7 location: 7
quantity: 5 quantity: 5
batch: "AAA"
level: 0 level: 0
tree_id: 0 tree_id: 0
lft: 0 lft: 0
@ -103,6 +105,7 @@
fields: fields:
part: 10001 part: 10001
location: 7 location: 7
batch: "AAA"
quantity: 1 quantity: 1
serial: 1 serial: 1
level: 0 level: 0

View File

@ -528,6 +528,7 @@ class TestResultTest(StockTest):
item.pk = None item.pk = None
item.serial = None item.serial = None
item.quantity = 50 item.quantity = 50
item.batch = "B344"
item.save() item.save()