From 546cacec37f73c64d3b9b545c7f1e1c2056ca1ca Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 11 Apr 2017 16:41:00 +0200 Subject: [PATCH] Verify that we set the correct container after set...ByID Makes sense. 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 c3b1880397..3354879f74 100644 --- a/tests/Settings/TestGlobalStack.py +++ b/tests/Settings/TestGlobalStack.py @@ -493,6 +493,7 @@ def test_removeContainer(global_stack): def test_setDefinitionByIdExists(global_stack, container_registry): container_registry.return_value = DefinitionContainer(container_id = "some_definition") global_stack.setDefinitionById("some_definition") + assert global_stack.definition.getId() == "some_definition" ## Tests setting definitions by specifying an ID of a definition that doesn't # exist. @@ -505,6 +506,7 @@ def test_setDefinitionByIdDoesntExist(global_stack): def test_setDefinitionChangesByIdExists(global_stack, container_registry): container_registry.return_value = getInstanceContainer(container_type = "definition_changes") global_stack.setDefinitionChangesById("InstanceContainer") + assert global_stack.definitionChanges.getId() == "InstanceContainer" ## Tests setting definition changes by specifying an ID of a container that # doesn't exist.