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
path: root/tests
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2018-02-27 15:15:03 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-02-27 15:15:03 +0300
commitdfa870b6a9521d4eac7084d089ffdffce7998b75 (patch)
treef52b1203dc27fda1b540e847fff4b1dffffffb6e /tests
parent75573da9dd2c1225af7c50ea71338e2e1fe6eb95 (diff)
Remove approximate diameter unit tests because the function/property is gone
Diffstat (limited to 'tests')
-rwxr-xr-xtests/Settings/TestGlobalStack.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/Settings/TestGlobalStack.py b/tests/Settings/TestGlobalStack.py
index 45ff13aaf3..6bf10dd8c1 100755
--- a/tests/Settings/TestGlobalStack.py
+++ b/tests/Settings/TestGlobalStack.py
@@ -116,31 +116,6 @@ def test_addExtruder(global_stack):
# global_stack.addExtruder(unittest.mock.MagicMock())
assert len(global_stack.extruders) == 2 #Didn't add the faulty extruder.
-## Tests getting the approximate material diameter.
-@pytest.mark.parametrize("diameter, approximate_diameter", [
- #Some real-life cases that are common in printers.
- (2.85, 3),
- (1.75, 2),
- (3.0, 3),
- (2.0, 2),
- #Exceptional cases.
- (0, 0),
- (-10.1, -10),
- (-1, -1),
- (9000.1, 9000)
-])
-def test_approximateMaterialDiameter(diameter, approximate_diameter, global_stack):
- global_stack.definition = DefinitionContainer(container_id = "TestDefinition")
- material_diameter = UM.Settings.SettingDefinition.SettingDefinition(key = "material_diameter", container = global_stack.definition)
- material_diameter.addSupportedProperty("value", UM.Settings.SettingDefinition.DefinitionPropertyType.Any, default = diameter)
- global_stack.definition.definitions.append(material_diameter)
- assert float(global_stack.approximateMaterialDiameter) == approximate_diameter
-
-## Tests getting the material diameter when there is no material diameter.
-def test_approximateMaterialDiameterNoDiameter(global_stack):
- global_stack.definition = DefinitionContainer(container_id = "TestDefinition")
- assert global_stack.approximateMaterialDiameter == "-1"
-
#Tests setting user changes profiles to invalid containers.
@pytest.mark.parametrize("container", [
getInstanceContainer(container_type = "wrong container type"),