Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-12-18 13:52:53 +0300
committerJaime van Kessel <nallath@gmail.com>2020-12-18 13:52:53 +0300
commitcd76326fed2f8d6328dda9e66dbc7f43d53d6762 (patch)
tree6dd11e8337ec4ccb3fe1667fbf0d7738e1f95aba
parent037b5d5b44014dfead2a4a6fe336fe88da3b9dbc (diff)
Fix tests
CURA-7835
-rw-r--r--tests/TestBuildVolume.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/TestBuildVolume.py b/tests/TestBuildVolume.py
index c5d59b64d7..293b8e0270 100644
--- a/tests/TestBuildVolume.py
+++ b/tests/TestBuildVolume.py
@@ -66,9 +66,12 @@ class TestCalculateBedAdhesionSize:
return properties.get(args[2])
def createAndSetGlobalStack(self, build_volume):
- mocked_stack = MagicMock()
+ mocked_stack = MagicMock(name = "mocked_stack")
mocked_stack.getProperty = MagicMock(side_effect=self.getPropertySideEffect)
+ mocked_extruder = MagicMock(name = "mocked_extruder")
+ mocked_extruder.getProperty = MagicMock(side_effect=self.getPropertySideEffect)
+ mocked_stack.extruderList = [mocked_extruder]
build_volume._global_container_stack = mocked_stack
def test_noGlobalStack(self, build_volume: BuildVolume):
@@ -90,6 +93,7 @@ class TestCalculateBedAdhesionSize:
self.createAndSetGlobalStack(build_volume)
patched_dictionary = self.setting_property_dict.copy()
patched_dictionary.update(setting_dict)
+ patched_dictionary.update({"adhesion_extruder_nr": {"value": 0}})
with patch.dict(self.setting_property_dict, patched_dictionary):
assert build_volume._calculateBedAdhesionSize([]) == result