diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-07-07 17:11:03 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-07-07 17:11:03 +0300 |
commit | 816aaafc1972d43d93913b9976a1ca7735037914 (patch) | |
tree | c3b036c046b38e35cbce91ea2428bf956a8b94f4 /tests | |
parent | 141ad8ff1dcadeb98a530a858374ca7a63cb4c13 (diff) |
Revert changes for CURA-5479
It was decided that functionality present in existing plugins is
sufficient. No need to replicate it in our own codebase and
take on the burden of maintenance
CURA-5479
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestPrintInformation.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/TestPrintInformation.py b/tests/TestPrintInformation.py index 577827f326..5133dfcafb 100644 --- a/tests/TestPrintInformation.py +++ b/tests/TestPrintInformation.py @@ -8,13 +8,6 @@ from unittest.mock import MagicMock, patch from UM.MimeTypeDatabase import MimeTypeDatabase, MimeType -def preferencesGetValue(key: str): - if key == "cura/job_name_template": - return "{machine_name_short}_{project_name}" - - return '{"omgzomg": {"spool_weight": 10, "spool_cost": 9}}' - - def getPrintInformation(printer_name) -> PrintInformation: mock_application = MagicMock(name = "mock_application") @@ -26,7 +19,7 @@ def getPrintInformation(printer_name) -> PrintInformation: mocked_extruder_stack.material = mocked_material mock_application.getInstance = MagicMock(return_value = mock_application) - mocked_preferences.getValue = MagicMock(side_effect = preferencesGetValue) + mocked_preferences.getValue = MagicMock(return_value = '{"omgzomg": {"spool_weight": 10, "spool_cost": 9}}') global_container_stack = MagicMock() global_container_stack.definition.getName = MagicMock(return_value = printer_name) |