mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Add tests for default location traversal
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user