InvenTree/InvenTree/part/fixtures/params.yaml
Oliver Walters 8a06eaa40d Unit testing
2021-04-11 19:28:39 +10:00

71 lines
1.1 KiB
YAML

# Create some PartParameter templtes
- model: part.PartParameterTemplate
pk: 1
fields:
name: Length
units: mm
- model: part.PartParameterTemplate
pk: 2
fields:
name: Width
units: mm
- model: part.PartParameterTemplate
pk: 3
fields:
name: Thickness
units: mm
# Add some parameters to parts (requires part.yaml)
- model: part.PartParameter
pk: 1
fields:
part: 1
template: 1
data: 4
- model: part.PartParameter
pk: 2
fields:
part: 2
template: 1
data: 12
- model: part.PartParameter
pk: 3
fields:
part: 3
template: 1
data: 12
- model: part.PartParameter
pk: 4
fields:
part: 3
template: 2
data: 12
- model: part.PartParameter
pk: 5
fields:
part: 3
template: 3
data: 12
# Add some template parameters to categories (requires category.yaml)
- model: part.PartCategoryParameterTemplate
pk: 1
fields:
category: 7
parameter_template: 1
default_value: '2.8'
- model: part.PartCategoryParameterTemplate
pk: 2
fields:
category: 7
parameter_template: 3
default_value: '0.5'