From f1b83f1c1721fcefc480116d5a5f3ddc34564820 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 1 Nov 2020 15:34:42 +1100 Subject: [PATCH] Update fixtues for unit testing --- InvenTree/stock/fixtures/stock.yaml | 3 +++ InvenTree/stock/tests.py | 1 + 2 files changed, 4 insertions(+) diff --git a/InvenTree/stock/fixtures/stock.yaml b/InvenTree/stock/fixtures/stock.yaml index 79b3585420..719d8a34ce 100644 --- a/InvenTree/stock/fixtures/stock.yaml +++ b/InvenTree/stock/fixtures/stock.yaml @@ -67,6 +67,7 @@ pk: 102 fields: part: 25 + batch: 'ABCDE' location: 7 quantity: 3 level: 0 @@ -93,6 +94,7 @@ part: 10001 location: 7 quantity: 5 + batch: "AAA" level: 0 tree_id: 0 lft: 0 @@ -103,6 +105,7 @@ fields: part: 10001 location: 7 + batch: "AAA" quantity: 1 serial: 1 level: 0 diff --git a/InvenTree/stock/tests.py b/InvenTree/stock/tests.py index 199a99121e..1bd4feb02f 100644 --- a/InvenTree/stock/tests.py +++ b/InvenTree/stock/tests.py @@ -528,6 +528,7 @@ class TestResultTest(StockTest): item.pk = None item.serial = None item.quantity = 50 + item.batch = "B344" item.save()