From 6cea609b569e9d972edc74a705b7dc268b1977c3 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 12 Aug 2019 14:52:05 +0200 Subject: [PATCH] Fix intentManager test Since we changed how the QualityManager is constructed, the test should change as well CURA-6600 --- tests/TestIntentManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestIntentManager.py b/tests/TestIntentManager.py index 337af817d1..1e2786ca6e 100644 --- a/tests/TestIntentManager.py +++ b/tests/TestIntentManager.py @@ -9,12 +9,13 @@ from cura.Machines.QualityManager import QualityManager from tests.Settings.MockContainer import MockContainer + @pytest.fixture() def quality_manager(application, container_registry, global_stack) -> QualityManager: application.getGlobalContainerStack = MagicMock(return_value = global_stack) with patch("cura.CuraApplication.CuraApplication.getInstance", MagicMock(return_value = application)): with patch("UM.Settings.ContainerRegistry.ContainerRegistry.getInstance", MagicMock(return_value = container_registry)): - manager = QualityManager(application) + manager = QualityManager() return manager