Ghostkeeper
361b58f49c
Let container_registry return a pre-set value for what containers it finds
...
This makes a lot of tests more simple, without requiring elaborate mocks, patches and fixtures.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
8dc073f5c8
Add container types to fallthrough tests
...
This checks exactly the same code as the global stack.
Contributes to issue CURA-3497.
2017-04-12 10:00:43 +02:00
Ghostkeeper
b97ef58436
Remove redundant deserialize tests
...
They test Uranium code, not this module.
Contributes to issue CURA-3497.
2017-04-12 10:00:43 +02:00
Ghostkeeper
4bb217592f
Refactor deserialise tests
...
These are now essentially testing the same code as the similar tests for the global stack. This is ugly but without looking at the implementation this is correct.
Contributes to issue CURA-3497.
2017-04-12 10:00:43 +02:00
Ghostkeeper
2cdb6c5f6f
Split test_constrainContainerTypes into separate tests
...
Firstly, it'll no longer break on the first assert if multiple things are wrong. Secondly, it can now set different types for each container and put it in the correct slot then.
Contributes to issue CURA-3497.
2017-04-10 12:54:35 +02:00
Ghostkeeper
ccd22ef36d
Add tests for setting property on other parts of extruder stack
...
It then asks the property back and sees if it was changed.
Contributes to issue CURA-3497.
2017-03-24 17:55:21 +01:00
Ghostkeeper
129f01aa24
Add tests for setting property on user changes of extruder stack
...
Setting a property directly should put it in the user changes.
Contributes to issue CURA-3497.
2017-03-24 17:52:53 +01:00
Ghostkeeper
fe95755f75
Add tests for setVariantById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:50:14 +01:00
Ghostkeeper
a5d91139ef
Add tests for setQualityChangesById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:49:14 +01:00
Ghostkeeper
393ee7838a
Add tests for setQualityById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:48:27 +01:00
Ghostkeeper
eb7035db45
Add tests for setMaterialById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:46:59 +01:00
Ghostkeeper
e4952ac8c5
Add tests for setDefinitionById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:44:22 +01:00
Ghostkeeper
78e78ac147
Add test for settings behaving like a stack
...
The stack order is very fixed here. Is that bad?
Contributes to issue CURA-3497.
2017-03-24 17:40:41 +01:00
Ghostkeeper
7913ff9bf2
Add test for deserializing with a missing container
...
A container is missing in the registry, so it should raise an exception.
Contributes to issue CURA-3497.
2017-03-24 17:35:31 +01:00
Ghostkeeper
69c53dcd73
Add test for constraining container types to certain slots
...
Only the definition slot must hold a definition container. All the rest must hold an instance container. This fails currently because the properties don't even exist.
Contributes to issue CURA-3497.
2017-03-24 17:32:33 +01:00
Ghostkeeper
e3932cb21c
Document deserialize test cases
...
Contributes to issue CURA-3497.
2017-03-24 17:27:46 +01:00
Ghostkeeper
ccb9c07909
Align parameters of material deserialising test
...
For readability.
Contributes to issue CURA-3497.
2017-03-24 17:24:35 +01:00
Ghostkeeper
e09f41e485
Add tests for deserialising extruders with definitions
...
All extruders have definitions, but this one specifically tests whether the ID is correct.
Contributes to issue CURA-3497.
2017-03-24 17:23:56 +01:00
Ghostkeeper
df2ae12ca9
Add tests for deserialising extruders with variants
...
Contributes to issue CURA-3497.
2017-03-24 17:21:47 +01:00
Ghostkeeper
bbd0ca7b9f
Add tests for deserialising extruders with material
...
Contributes to issue CURA-3497.
2017-03-24 17:17:41 +01:00
Ghostkeeper
9cb7c30fcb
Add tests for deserialising extruders with quality
...
Only the greatest extruders with actual quality are deserialised...
Contributes to issue CURA-3497.
2017-03-24 17:13:32 +01:00
Ghostkeeper
71a946d1b9
Add tests for deserialising extruders with quality changes
...
Contributes to issue CURA-3497.
2017-03-24 17:08:34 +01:00
Ghostkeeper
91814a827b
Line up parameters of test cases
...
Better oversight.
Contributes to issue CURA-3497.
2017-03-24 17:05:06 +01:00
Ghostkeeper
dea86ca535
Add tests for deserialising a stack with user changes
...
Code is mostly copied over from the global stack, which should work in a similar way.
Contributes to issue CURA-3497.
2017-03-24 16:57:48 +01:00
Ghostkeeper
e881465050
Add delimiter between global stuff and test cases
...
Helps provide some oversight since this module is about to explode in size.
Contributes to issue CURA-3497.
2017-03-24 16:31:57 +01:00
Ghostkeeper
eeb84ac27b
Add tests for prohibited operations on extruder stacks
...
These operations are explicitly prohibited, so they should raise an exception.
Contributes to issue CURA-3497.
2017-03-24 15:11:25 +01:00