small code-style fixes

This commit is contained in:
Dmitry Gribenchuk 2024-10-17 11:24:48 +03:00
parent aaff84ce77
commit 863569b7de
No known key found for this signature in database
GPG Key ID: A76A250718E76E87
8 changed files with 7 additions and 12 deletions

View File

@ -424,4 +424,3 @@ class TestGetEdgeDisallowedSize:
with patch("cura.Settings.ExtruderManager.ExtruderManager.getInstance"): with patch("cura.Settings.ExtruderManager.ExtruderManager.getInstance"):
with patch.dict(self.setting_property_dict, {"print_sequence": {"value": "one_at_a_time"}}): with patch.dict(self.setting_property_dict, {"print_sequence": {"value": "one_at_a_time"}}):
assert build_volume.getEdgeDisallowedSize() == 0.1 assert build_volume.getEdgeDisallowedSize() == 0.1

View File

@ -75,5 +75,4 @@ def test_updateMaxBuildPlate(objects_model, multi_build_plate_model):
# And check what happens if we move down again! # And check what happens if we move down again!
controller._calcMaxBuildPlate = MagicMock(return_value=2) controller._calcMaxBuildPlate = MagicMock(return_value=2)
controller.updateMaxBuildPlate(SceneNode()) controller.updateMaxBuildPlate(SceneNode())
assert controller._active_build_plate == 0 # We don't have any items anywhere, so default to 0 assert controller._active_build_plate == 0 # We don't have any items anywhere, so default to 0

View File

@ -53,5 +53,3 @@ class TestCollidesWithAreas:
def test_outsideBuildArea(cura_scene_node): def test_outsideBuildArea(cura_scene_node):
cura_scene_node.setOutsideBuildArea(True) cura_scene_node.setOutsideBuildArea(True)
assert cura_scene_node.isOutsideBuildArea assert cura_scene_node.isOutsideBuildArea

View File

@ -226,4 +226,3 @@ class Test_Update:
"per_object_settings_count": 0, "per_object_settings_count": 0,
"mesh_type": "" "mesh_type": ""
}] }]

View File

@ -1,8 +1,8 @@
# Copyright (c) 2018 Ultimaker B.V. # Copyright (c) 2018 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 configparser #To read the profiles. import configparser # To read the profiles.
import os #To join paths. import os # To join paths.
import pytest import pytest
## Makes sure that the variants for the Ultimaker 3 Extended are exactly the ## Makes sure that the variants for the Ultimaker 3 Extended are exactly the
@ -13,7 +13,7 @@ import pytest
# needed, but until then we should keep them the same. It's happened all too # needed, but until then we should keep them the same. It's happened all too
# often that we updated the variants for the UM3 but forgot about the UM3E. # often that we updated the variants for the UM3 but forgot about the UM3E.
@pytest.mark.parametrize("um3_file, um3e_file", [ @pytest.mark.parametrize("um3_file, um3e_file", [
#List the corresponding files below. # List the corresponding files below.
("ultimaker3_aa0.25.inst.cfg", "ultimaker3_extended_aa0.25.inst.cfg"), ("ultimaker3_aa0.25.inst.cfg", "ultimaker3_extended_aa0.25.inst.cfg"),
("ultimaker3_aa0.8.inst.cfg", "ultimaker3_extended_aa0.8.inst.cfg"), ("ultimaker3_aa0.8.inst.cfg", "ultimaker3_extended_aa0.8.inst.cfg"),
("ultimaker3_aa04.inst.cfg", "ultimaker3_extended_aa04.inst.cfg"), ("ultimaker3_aa04.inst.cfg", "ultimaker3_extended_aa04.inst.cfg"),