2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 21:20:56 +00:00

Add tests for default location traversal

This commit is contained in:
Oliver Walters
2019-05-04 23:20:59 +10:00
parent 6d803d48b5
commit ab6673caa3
4 changed files with 64 additions and 2 deletions

View File

@ -6,7 +6,7 @@
name: Electronics
description: Electronic components
parent: null
default_location: null
default_location: 1 # Home
- model: part.partcategory
pk: 2
fields:
@ -54,3 +54,4 @@
name: Fasteners
description: Screws, bolts, etc
parent: 7
default_location: 5

View File

@ -23,10 +23,17 @@
name: 'R_4K7_0603'
description: '4.7kOhm resistor in 0603 package'
category: 2
default_location: 2 # Home/Bathroom
# Create some capacitors
- model: part.part
fields:
name: 'C_22N_0805'
description: '22nF capacitor in 0805 package'
category: 3
category: 3
- model: part.part
fields:
name: 'Widget'
description: 'A watchamacallit'
category: 7