diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-09-23 18:09:54 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-09-23 18:09:54 +0300 |
commit | 4dc918c64726c89b87e98dc83e937729ed64fbe5 (patch) | |
tree | f4bc269da99dda98c3ab71bb08685777e2c8bbfe /tests/TestIntentManager.py | |
parent | 557746a8326d570ab80bb5ec47e720a2a2aeebc3 (diff) |
Fix unit test
Diffstat (limited to 'tests/TestIntentManager.py')
-rw-r--r-- | tests/TestIntentManager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/TestIntentManager.py b/tests/TestIntentManager.py index 5ed2656df4..a82de1273d 100644 --- a/tests/TestIntentManager.py +++ b/tests/TestIntentManager.py @@ -62,6 +62,7 @@ def intent_manager(application, extruder_manager, machine_manager, container_reg application.getExtruderManager = MagicMock(return_value = extruder_manager) application.getGlobalContainerStack = MagicMock(return_value = global_stack) application.getMachineManager = MagicMock(return_value = machine_manager) + machine_manager.setIntentByCategory = MagicMock() with patch("cura.CuraApplication.CuraApplication.getInstance", MagicMock(return_value = application)): with patch("UM.Settings.ContainerRegistry.ContainerRegistry.getInstance", MagicMock(return_value = container_registry)): manager = IntentManager() |