diff options
author | Ghostkeeper <rubend@tutanota.com> | 2020-06-02 14:46:17 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2020-06-02 14:46:17 +0300 |
commit | 825a34d41844236cf65d16aaea5435490b300346 (patch) | |
tree | 98ea9da2fc58116588834034419813dd7a30b0b7 /tests/Settings | |
parent | be814535e979c28734460a697da879dbe2b41a07 (diff) |
Mock the extruderList
Otherwise the list of extruders becomes a MagicMock. Adding a list to a MagicMock is again a MagicMock, and when iterating over that it doesn't result in any iterations. As a result, the for loop that clears all user containers didn't clear anything and the test failed.
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/TestContainerManager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Settings/TestContainerManager.py b/tests/Settings/TestContainerManager.py index ff23b727e6..19ade68f68 100644 --- a/tests/Settings/TestContainerManager.py +++ b/tests/Settings/TestContainerManager.py @@ -14,6 +14,7 @@ class TestContainerManager(TestCase): self._application = MagicMock() self._container_registry = MagicMock() self._machine_manager = MagicMock() + self._machine_manager.activeMachine.extruderList = [MagicMock(name="Left Extruder Mock"), MagicMock(name="Right Extruder Mock")] self._mocked_mime = MagicMock() self._mocked_mime.preferredSuffix = "omg" |