2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

More test coverage for Stock

This commit is contained in:
Oliver Walters
2019-05-13 18:45:52 +10:00
parent 42bbf95c42
commit 0813f8cbd5
5 changed files with 80 additions and 12 deletions

View File

@ -5,12 +5,14 @@
fields:
name: 'Home'
description: 'My house'
- model: stock.stocklocation
pk: 2
fields:
name: 'Bathroom'
description: 'Where I keep my bath'
parent: 1
- model: stock.stocklocation
pk: 3
fields:
@ -23,18 +25,21 @@
fields:
name: 'Office'
description: 'Place of work'
- model: stock.stocklocation
pk: 5
fields:
name: 'Drawer_1'
description: 'In my desk'
parent: 4
- model: stock.stocklocation
pk: 6
fields:
name: 'Drawer_2'
description: 'Also in my desk'
parent: 4
- model: stock.stocklocation
pk: 7
fields:

View File

@ -17,6 +17,7 @@
# 1234 2K2 resistors in 'Drawer_1'
- model: stock.stockitem
pk: 1234
fields:
part: 3
location: 5
@ -24,18 +25,22 @@
# Some widgets in drawer 3
- model: stock.stockitem
pk: 100
fields:
part: 25
location: 7
quantity: 10
delete_on_deplete: False
- model: stock.stockitem
pk: 101
fields:
part: 25
location: 7
quantity: 5
- model: stock.stockitem
pk: 102
fields:
part: 25
location: 7