Document test_deserializeWrongDefinitionClass

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-04-10 16:46:47 +02:00
parent 5e9695773a
commit f27e7fca88
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -324,6 +324,8 @@ def test_deserializeRemovesWrongContainerClass(global_stack):
assert global_stack.quality == global_stack._empty_instance_container #Replaced with empty.
## Tests whether an instance container in the definition spot results in an
# error.
def test_deserializeWrongDefinitionClass(global_stack):
global_stack._containers[cura.Settings.CuraContainerStack._ContainerIndexes.Definition] = getInstanceContainer(container_type = "definition") #Correct type but wrong class.