diff options
Diffstat (limited to 'tests/TestBuildVolume.py')
-rw-r--r-- | tests/TestBuildVolume.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/TestBuildVolume.py b/tests/TestBuildVolume.py index f59d83df5e..7bc629962d 100644 --- a/tests/TestBuildVolume.py +++ b/tests/TestBuildVolume.py @@ -96,7 +96,12 @@ 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}}) + patched_dictionary.update({ + "skirt_brim_extruder_nr": {"value": 0}, + "raft_base_extruder_nr": {"value": 0}, + "raft_interface_extruder_nr": {"value": 0}, + "raft_surface_extruder_nr": {"value": 0} + }) with patch.dict(self.setting_property_dict, patched_dictionary): assert build_volume._calculateBedAdhesionSize([]) == result @@ -158,8 +163,9 @@ class TestComputeDisallowedAreasStatic: class TestUpdateRaftThickness: setting_property_dict = {"raft_base_thickness": {"value": 1}, + "raft_interface_layers": {"value": 2}, "raft_interface_thickness": {"value": 1}, - "raft_surface_layers": {"value": 1}, + "raft_surface_layers": {"value": 3}, "raft_surface_thickness": {"value": 1}, "raft_airgap": {"value": 1}, "layer_0_z_overlap": {"value": 1}, @@ -188,7 +194,7 @@ class TestUpdateRaftThickness: assert build_volume.getRaftThickness() == 0 build_volume._updateRaftThickness() - assert build_volume.getRaftThickness() == 3 + assert build_volume.getRaftThickness() == 6 # 1 base layer of 1mm, 2 interface layers of 1mm each, 3 surface layer of 1mm. assert build_volume.raftThicknessChanged.emit.call_count == 1 def test_adhesionIsNotRaft(self, build_volume: BuildVolume): |