diff options
author | Remco Burema <r.burema@ultimaker.com> | 2020-11-10 13:31:53 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2020-11-10 13:31:53 +0300 |
commit | 9afbc64934fc7e4c2e14ab516938e6a935e48336 (patch) | |
tree | ce4e6cc88759d9756defb94c5ef08ad1601b2f36 /tests | |
parent | 68422e8be47345f7097223bfe2ac7d746b791345 (diff) | |
parent | 58bae31d903b868463ae5c3650301a8e559d8cb9 (diff) |
Merge branch '4.8'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestMachineManager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/TestMachineManager.py b/tests/TestMachineManager.py index 4f15a0670c..788b8eee41 100644 --- a/tests/TestMachineManager.py +++ b/tests/TestMachineManager.py @@ -21,7 +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._onGlobalContainerChanged() + with patch.object(MachineManager, "updateNumberExtrudersEnabled", return_value = None): + manager._onGlobalContainerChanged() return manager @@ -253,4 +254,4 @@ def test_isActiveQualityNotSupported(machine_manager): def test_isActiveQualityNotSupported_noQualityGroup(machine_manager): machine_manager.activeQualityGroup = MagicMock(return_value=None) - assert not machine_manager.isActiveQualitySupported
\ No newline at end of file + assert not machine_manager.isActiveQualitySupported |