From f27e7fca88934b316251298750bd22b8fff35cc9 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 10 Apr 2017 16:46:47 +0200 Subject: [PATCH] Document test_deserializeWrongDefinitionClass Contributes to issue CURA-3497. --- tests/Settings/TestGlobalStack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Settings/TestGlobalStack.py b/tests/Settings/TestGlobalStack.py index 38ecb8967a..ce86cc4c7b 100644 --- a/tests/Settings/TestGlobalStack.py +++ b/tests/Settings/TestGlobalStack.py @@ -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.