From 96c7a4ed77bb37e476ba4efc57379c74dd840fad Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 23 Mar 2017 16:16:32 +0100 Subject: [PATCH] Remove unused variable This was changed earlier that it doesn't return the same mock every time but creates a new mock in findContainer. So the single mock that used to be returned every time is no longer needed. Contributes to issue CURA-3497. --- tests/Settings/TestCuraContainerRegistry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Settings/TestCuraContainerRegistry.py b/tests/Settings/TestCuraContainerRegistry.py index 3ae6c8cca7..d94344be74 100644 --- a/tests/Settings/TestCuraContainerRegistry.py +++ b/tests/Settings/TestCuraContainerRegistry.py @@ -36,7 +36,6 @@ def test_loadTypes(filename, output_class, container_registry): else: return [] container_registry.findContainers = findContainers - mock_definition = unittest.mock.MagicMock() def findContainer(container_id = "*", container_type = None, type = "*", category = None): return unittest.mock.MagicMock() @@ -51,4 +50,4 @@ def test_loadTypes(filename, output_class, container_registry): assert type(container) == output_class break else: - assert False #Container stack with specified ID was not loaded. + assert False #Container stack with specified ID was not loaded. \ No newline at end of file