mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-05 13:10:57 +00:00
Simple and View test units
This commit is contained in:
@ -31,3 +31,17 @@
|
||||
name: Another customer!
|
||||
description: Yet another company
|
||||
is_customer: True
|
||||
|
||||
- model: company.company
|
||||
pk: 6
|
||||
fields:
|
||||
name: A manufacturer
|
||||
description: A company that makes parts!
|
||||
is_manufacturer: True
|
||||
|
||||
- model: company.company
|
||||
pk: 7
|
||||
fields:
|
||||
name: Another manufacturer
|
||||
description: They build things and sell it to us
|
||||
is_manufacturer: True
|
||||
|
22
InvenTree/company/fixtures/manufacturer_part.yaml
Normal file
22
InvenTree/company/fixtures/manufacturer_part.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
# Manufacturer Parts
|
||||
|
||||
- model: company.manufacturerpart
|
||||
pk: 1
|
||||
fields:
|
||||
part: 5
|
||||
manufacturer: 6
|
||||
MPN: 'MPN123'
|
||||
|
||||
- model: company.manufacturerpart
|
||||
pk: 2
|
||||
fields:
|
||||
part: 3
|
||||
manufacturer: 7
|
||||
MPN: 'MPN456'
|
||||
|
||||
- model: company.manufacturerpart
|
||||
pk: 3
|
||||
fields:
|
||||
part: 5
|
||||
manufacturer: 7
|
||||
MPN: 'MPN789'
|
@ -52,3 +52,20 @@
|
||||
part: 2
|
||||
supplier: 2
|
||||
SKU: 'ZERGM312'
|
||||
|
||||
# Supplier parts linked to Manufacturer parts
|
||||
- model: company.supplierpart
|
||||
pk: 10
|
||||
fields:
|
||||
part: 3
|
||||
manufacturer_part: 2
|
||||
supplier: 2
|
||||
SKU: 'MPN456-APPEL'
|
||||
|
||||
- model: company.supplierpart
|
||||
pk: 11
|
||||
fields:
|
||||
part: 3
|
||||
manufacturer_part: 2
|
||||
supplier: 3
|
||||
SKU: 'MPN456-ZERG'
|
||||
|
Reference in New Issue
Block a user