From a2fe051c09e405106efedb3e09f7317f02410593 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 22 Mar 2017 15:58:28 +0100 Subject: [PATCH] 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. --- tests/Settings/TestGlobalStack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Settings/TestGlobalStack.py b/tests/Settings/TestGlobalStack.py index 2f284f2f1e..31bca56651 100644 --- a/tests/Settings/TestGlobalStack.py +++ b/tests/Settings/TestGlobalStack.py @@ -23,8 +23,8 @@ def test_deserializeUserChanges(filename, user_changes_id): #Mock the loading of the instances. def findContainer(container_id = "*", container_type = None, type = None, category = "*"): - if id == "some_instance": - return UM.Settings.ContainerRegistry._EmptyInstanceContainer(id) + if container_id.startswith("some_"): + return UM.Settings.ContainerRegistry._EmptyInstanceContainer(container_id) if container_type == DefinitionContainer: return unittest.mock.MagicMock() stack.findContainer = findContainer