From 80771beee91dc7c215f27c9384397d497a38531b Mon Sep 17 00:00:00 2001 From: Oliver Walters <oliver.henry.walters@gmail.com> Date: Thu, 15 Aug 2019 21:16:12 +1000 Subject: [PATCH] FIxtures for build testing --- InvenTree/build/fixtures/build.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 InvenTree/build/fixtures/build.yaml diff --git a/InvenTree/build/fixtures/build.yaml b/InvenTree/build/fixtures/build.yaml new file mode 100644 index 0000000000..d0fc30755a --- /dev/null +++ b/InvenTree/build/fixtures/build.yaml @@ -0,0 +1,21 @@ +# Construct build objects + +- model: build.build + fields: + part: 25 + batch: 'B1' + title: 'Building 7 parts' + quantity: 7 + notes: 'Some simple notes' + status: 10 # PENDING + creation_date: '2019-03-16' + +- model: build.build + fields: + part: 50 + title: 'Making things' + batch: 'B2' + status: 40 # COMPLETE + quantity: 21 + notes: 'Some more simple notes' + creation_date: '2019-03-16' \ No newline at end of file