From 8f36e76588ef284e225ad979820ddfa84001e96e Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 27 Mar 2017 17:57:07 +0200 Subject: [PATCH] Make sure to use the right metadata type entry for mock containers --- tests/Settings/TestGlobalStack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Settings/TestGlobalStack.py b/tests/Settings/TestGlobalStack.py index ae94089246..9f786183c8 100644 --- a/tests/Settings/TestGlobalStack.py +++ b/tests/Settings/TestGlobalStack.py @@ -452,6 +452,7 @@ def test_setDefinitionByIdDoesntExist(global_stack): ## Tests setting definition changes by specifying an ID of a container that # exists. def test_setDefinitionChangesByIdExists(global_stack, container_registry): + container_registry.typeMetaData = "definition_changes" global_stack.setDefinitionChangesById("some_definition_changes") #The container registry always has a container with the ID. ## Tests setting definition changes by specifying an ID of a container that @@ -462,6 +463,7 @@ def test_setDefinitionChangesByIdDoesntExist(global_stack): ## Tests setting materials by specifying an ID of a material that exists. def test_setMaterialByIdExists(global_stack, container_registry): + container_registry.typeMetaData = "material" global_stack.setMaterialById("some_material") #The container registry always has a container with the ID. ## Tests setting materials by specifying an ID of a material that doesn't @@ -518,6 +520,7 @@ def test_setPropertyOtherContainers(target_container, global_stack): ## Tests setting qualities by specifying an ID of a quality that exists. def test_setQualityByIdExists(global_stack, container_registry): + container_registry.typeMetaData = "quality" global_stack.setQualityById("some_quality") #The container registry always has a container with the ID. ## Tests setting qualities by specifying an ID of a quality that doesn't exist. @@ -528,6 +531,7 @@ def test_setQualityByIdDoesntExist(global_stack): ## Tests setting quality changes by specifying an ID of a quality change that # exists. def test_setQualityChangesByIdExists(global_stack, container_registry): + container_registry.typeMetaData = "quality_changes" global_stack.setQualityChangesById("some_quality_changes") #The container registry always has a container with the ID. ## Tests setting quality changes by specifying an ID of a quality change that @@ -538,6 +542,7 @@ def test_setQualityChangesByIdDoesntExist(global_stack): ## Tests setting variants by specifying an ID of a variant that exists. def test_setVariantByIdExists(global_stack, container_registry): + container_registry.typeMetaData = "variant" global_stack.setVariantById("some_variant") #The container registry always has a container with the ID. ## Tests setting variants by specifying an ID of a variant that doesn't exist.