Browse Source

Make sure to use the right metadata type entry for mock containers

Arjen Hiemstra 8 years ago
parent
commit
8f36e76588
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/Settings/TestGlobalStack.py

+ 5 - 0
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.