mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
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:
parent
9c78178561
commit
e098f98a7d
1 changed files with 4 additions and 5 deletions
|
@ -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.
|
||||
|
||||
import os #To find the directory with test files and find the test files.
|
||||
|
@ -251,14 +251,13 @@ def test_importProfileEmptyFileName(container_registry):
|
|||
|
||||
|
||||
mocked_application = unittest.mock.MagicMock(name = "application")
|
||||
mocked_plugin_registry = unittest.mock.MagicMock(name="mocked_plugin_registry")
|
||||
mocked_plugin_registry = unittest.mock.MagicMock(name = "mocked_plugin_registry")
|
||||
|
||||
@unittest.mock.patch("UM.Application.Application.getInstance", unittest.mock.MagicMock(return_value = mocked_application))
|
||||
@unittest.mock.patch("UM.PluginRegistry.PluginRegistry.getInstance", unittest.mock.MagicMock(return_value = mocked_plugin_registry))
|
||||
class TestImportProfile:
|
||||
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 = unittest.mock.MagicMock(name = "global stack")
|
||||
mocked_global_stack.getId = unittest.mock.MagicMock(return_value = "blarg")
|
||||
mocked_profile_reader = unittest.mock.MagicMock()
|
||||
|
||||
mocked_plugin_registry.getPluginObject = unittest.mock.MagicMock(return_value=mocked_profile_reader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue