mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 22:29:41 +08:00
Make sure to use the right metadata type entry for mock containers
This commit is contained in:
parent
60ee1a3f75
commit
8f36e76588
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user