mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Merge branch 'master' into PyQt6_upgrade
Conflicts: cura/PlatformPhysics.py -> Removed shapely on master, while QTimer import got updated to Qt6. plugins/Toolbox -> Entire folder is deleted in master, but it was updated to Qt6 here. This can all be removed.
This commit is contained in:
commit
c7d7dd11d1
415 changed files with 43396 additions and 36375 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue