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

Add fixtures / unit testing for the stock item testing framework

This commit is contained in:
Oliver Walters
2020-05-17 13:46:19 +10:00
parent 8c8b704e38
commit badf9230a9
3 changed files with 122 additions and 4 deletions

View File

@ -0,0 +1,39 @@
# Tests for the top-level "chair" part
- model: part.parttesttemplate
fields:
part: 10000
test_name: Test strength of chair
- model: part.parttesttemplate
fields:
part: 10000
test_name: Apply paint
- model: part.parttesttemplate
fields:
part: 10000
test_name: Sew cushion
- model: part.parttesttemplate
fields:
part: 10000
test_name: Attach legs
- model: part.parttesttemplate
fields:
part: 10000
test_name: Record weight
required: false
# Add some tests for one of the variants
- model: part.parttesttemplate
fields:
part: 10003
test_name: Check that chair is green
required: true
- model: part.parttesttemplate
fields:
part: 10004
test_name: Check that chair is especially green
required: False