Remove unused mock of extruders property

The extruders property is no longer being used by the code under test, so this mock is unnecessary. It's also a deprecated property.

Done during Turbo Testing and Tooling.
This commit is contained in:
Ghostkeeper 2020-05-29 17:35:42 +02:00
parent 9c78178561
commit e098f98a7d
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V. # Copyright (c) 2020 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher. # Cura is released under the terms of the LGPLv3 or higher.
import os #To find the directory with test files and find the test files. import os #To find the directory with test files and find the test files.
@ -257,7 +257,6 @@ mocked_plugin_registry = unittest.mock.MagicMock(name="mocked_plugin_registry")
@unittest.mock.patch("UM.PluginRegistry.PluginRegistry.getInstance", unittest.mock.MagicMock(return_value = mocked_plugin_registry)) @unittest.mock.patch("UM.PluginRegistry.PluginRegistry.getInstance", unittest.mock.MagicMock(return_value = mocked_plugin_registry))
class TestImportProfile: class TestImportProfile:
mocked_global_stack = unittest.mock.MagicMock(name = "global stack") mocked_global_stack = unittest.mock.MagicMock(name = "global stack")
mocked_global_stack.extruders = {0: unittest.mock.MagicMock(name="extruder stack")}
mocked_global_stack.getId = unittest.mock.MagicMock(return_value = "blarg") mocked_global_stack.getId = unittest.mock.MagicMock(return_value = "blarg")
mocked_profile_reader = unittest.mock.MagicMock() mocked_profile_reader = unittest.mock.MagicMock()