diff options
author | Kostas Karmas <konskarm@gmail.com> | 2020-11-06 11:38:15 +0300 |
---|---|---|
committer | Kostas Karmas <konskarm@gmail.com> | 2020-11-06 11:38:15 +0300 |
commit | 171939404904135834dcd579be44ebdb456f0118 (patch) | |
tree | 26649ec4ab383e7b953cfb5eda126a6afa2b0c4d /tests | |
parent | bd5ed7a3ac411851a9f269772b8c0aaf16165076 (diff) |
Patch the updateNumberExtrudersEnabled temporarily
CURA-7827
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestMachineManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestMachineManager.py b/tests/TestMachineManager.py index 3d9c61dab6..b415bad59c 100644 --- a/tests/TestMachineManager.py +++ b/tests/TestMachineManager.py @@ -21,8 +21,8 @@ def machine_manager(application, extruder_manager, container_registry, global_st application.getGlobalContainerStack = MagicMock(return_value = global_stack) with patch("cura.Settings.CuraContainerRegistry.CuraContainerRegistry.getInstance", MagicMock(return_value=container_registry)): manager = MachineManager(application) - manager.updateNumberExtrudersEnabled = MagicMock() - manager._onGlobalContainerChanged() + with patch.object(MachineManager, "updateNumberExtrudersEnabled", return_value = None): + manager._onGlobalContainerChanged() return manager |