mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Allow all profiles as some_* to be instances
This allows us to differentiate between one container in the stack and the other. Contributes to issue CURA-3497.
This commit is contained in:
parent
ebd08ac994
commit
a2fe051c09
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ def test_deserializeUserChanges(filename, user_changes_id):
|
||||||
|
|
||||||
#Mock the loading of the instances.
|
#Mock the loading of the instances.
|
||||||
def findContainer(container_id = "*", container_type = None, type = None, category = "*"):
|
def findContainer(container_id = "*", container_type = None, type = None, category = "*"):
|
||||||
if id == "some_instance":
|
if container_id.startswith("some_"):
|
||||||
return UM.Settings.ContainerRegistry._EmptyInstanceContainer(id)
|
return UM.Settings.ContainerRegistry._EmptyInstanceContainer(container_id)
|
||||||
if container_type == DefinitionContainer:
|
if container_type == DefinitionContainer:
|
||||||
return unittest.mock.MagicMock()
|
return unittest.mock.MagicMock()
|
||||||
stack.findContainer = findContainer
|
stack.findContainer = findContainer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue