Ghostkeeper
|
7158ebdaea
Guard against type checking when replacing definition container
|
7 years ago |
Ghostkeeper
|
d5df226024
Cache the indexes class
|
7 years ago |
Ghostkeeper
|
f4fcb50a4f
Fix container types of mock containers in fallthrough
|
7 years ago |
Ghostkeeper
|
4dfc86d5bb
Remove unused import
|
7 years ago |
Ghostkeeper
|
e71af663c3
Make getEmptyInstanceContainer return a container with ID 'empty'
|
7 years ago |
Ghostkeeper
|
7ce89f5d80
Simplify defaults for container IDs in fixtures
|
7 years ago |
Ghostkeeper
|
46f3b5bd97
Use yield_fixture for fixtures with teardown
|
7 years ago |
Ghostkeeper
|
8506c21099
Replace DefinitionContainer with MagicMock in test_addExtruder
|
7 years ago |
Arjen Hiemstra
|
d7984c888b
Use a proper container mock for test user/quality changes
|
7 years ago |
Arjen Hiemstra
|
30fd1ded45
Fix setPropertyOtherContainers test
|
7 years ago |
Arjen Hiemstra
|
3c1cbd5aa9
Do not compare string to actual type
|
7 years ago |
Arjen Hiemstra
|
3620ce4c0a
Fix setPropertyUser test with the right container and parameter order of setProperty
|
7 years ago |
Arjen Hiemstra
|
87ce6246d8
Introduce a "writable global stack" fixture
|
7 years ago |
Arjen Hiemstra
|
dc84141714
Implement set/getProperty for MockContainer
|
7 years ago |
Arjen Hiemstra
|
7175ac0d20
Do not try to perform a setProperty on a definition
|
7 years ago |
Arjen Hiemstra
|
2a2df31c5b
Set the User container to a writable container in testSetProperty
|
7 years ago |
Arjen Hiemstra
|
3f1f4a172d
Fix constrainContainerTypes test
|
7 years ago |
Arjen Hiemstra
|
593c6c0c8f
Set and clear ContainerStack's _containerRegistry property
|
7 years ago |
Arjen Hiemstra
|
8f36e76588
Make sure to use the right metadata type entry for mock containers
|
7 years ago |
Arjen Hiemstra
|
60ee1a3f75
We also raise InvalidContainer when setting variant
|
7 years ago |
Arjen Hiemstra
|
5892f13349
Fix naming of definitionChanges property in test
|
7 years ago |
Arjen Hiemstra
|
da751fa0ea
We raise InvalidContainerError, not KeyError when a container was not found
|
7 years ago |
Arjen Hiemstra
|
270cdd08cb
Don't modify ContainerStack._containerRegistry property
|
7 years ago |
Arjen Hiemstra
|
385d8ac5b5
Properly mock Container and ContainerRegistry objects in Global stack test
|
7 years ago |
Ghostkeeper
|
2936b9bf24
Fail deserialize test if missing container doesn't raise an exception
|
7 years ago |
Ghostkeeper
|
14ac41e58f
Add tests for setQualityChangesById
|
7 years ago |
Ghostkeeper
|
498956a190
Add tests for setQualityById
|
7 years ago |
Ghostkeeper
|
d9ba848dc8
Add tests for setMeterialById
|
7 years ago |
Ghostkeeper
|
3e437074ae
Sort tests better
|
7 years ago |
Ghostkeeper
|
dbc4a90e10
Add tests for setDefinitionChangesById
|
7 years ago |
Ghostkeeper
|
928181507d
Add tests for setDefinitionById
|
7 years ago |
Ghostkeeper
|
f29d5e897c
Add tests for setVariantById
|
7 years ago |
Ghostkeeper
|
72bbb8ec0c
Also test whether adding an extruder had any effect on the extruder list
|
7 years ago |
Ghostkeeper
|
55dd17cae7
Add tests for changing properties on specified containers
|
7 years ago |
Ghostkeeper
|
319fd929d8
Add test for setProperty to set properties on user changes
|
7 years ago |
Ghostkeeper
|
3d7dbe2e3b
Expand constrainContainerTypes test with subclasses of container types
|
7 years ago |
Ghostkeeper
|
00c1c2dcf6
Add test to verify that you can't change types of containers
|
7 years ago |
Ghostkeeper
|
d1dc48d7e1
Add test to verify priority of resolve property
|
7 years ago |
Ghostkeeper
|
f4673b340a
Document tests
|
7 years ago |
Ghostkeeper
|
56082bdbdf
Add tests for prohibited operations
|
7 years ago |
Ghostkeeper
|
f2b9f79fb3
Document test_addExtruder better
|
7 years ago |
Ghostkeeper
|
d40a67f2b0
Add test for addExtruder
|
7 years ago |
Ghostkeeper
|
86a1d3eb10
Add marker to indicate where the test cases start
|
7 years ago |
Ghostkeeper
|
4215ba3ce7
Add test for setting fall-through
|
7 years ago |
Ghostkeeper
|
a95404f72f
Add test for missing containers in container stack
|
7 years ago |
Ghostkeeper
|
9ce621a02d
Restore the original container registry after each test
|
7 years ago |
Ghostkeeper
|
91192b702e
Use a global stack from a fixture
|
7 years ago |
Ghostkeeper
|
bf2050479b
Add tests for hasUserValue
|
7 years ago |
Ghostkeeper
|
8a3ab6d289
Fix testing ID of mock-definitions
|
7 years ago |
Ghostkeeper
|
610d2ae1e6
Fix assertion for test_deserializeDefinitionChanges
|
7 years ago |