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:
authorGhostkeeper <rubend@tutanota.com>2019-09-06 18:26:38 +0300
committerGhostkeeper <rubend@tutanota.com>2019-09-06 18:26:38 +0300
commit5106d3b7c1cf64452c052141099318481e346488 (patch)
tree46b6093a7012e25c5eb4889da43945bfebf91ead /tests/Machines
parent7f192ce36fa53f17c4bc2ad9dc156f9a9beb7643 (diff)
Test if we actually return the result of the call to getQuality[Changes]Groups
Contributes to issue CURA-6600.
Diffstat (limited to 'tests/Machines')
-rw-r--r--tests/Machines/TestContainerTree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Machines/TestContainerTree.py b/tests/Machines/TestContainerTree.py
index 173d607f2c..833f2b651e 100644
--- a/tests/Machines/TestContainerTree.py
+++ b/tests/Machines/TestContainerTree.py
@@ -94,6 +94,7 @@ def test_getCurrentQualityGroups(container_registry, application):
expected_is_enabled = [True, True]
container_tree.machines["current_global_stack"].getQualityGroups.assert_called_with(expected_variant_names, expected_material_base_files, expected_is_enabled)
+ assert result == container_tree.machines["current_global_stack"].getQualityGroups.return_value
def test_getCurrentQualityChangesGroupsNoGlobalStack(container_registry):
with patch("UM.Settings.ContainerRegistry.ContainerRegistry.getInstance", MagicMock(return_value = container_registry)):
@@ -116,4 +117,5 @@ def test_getCurrentQualityChangesGroups(container_registry, application):
expected_material_base_files = ["current_global_stack_left_material_base_file", "current_global_stack_right_material_base_file"]
expected_is_enabled = [True, True]
- container_tree.machines["current_global_stack"].getQualityChangesGroups.assert_called_with(expected_variant_names, expected_material_base_files, expected_is_enabled) \ No newline at end of file
+ container_tree.machines["current_global_stack"].getQualityChangesGroups.assert_called_with(expected_variant_names, expected_material_base_files, expected_is_enabled)
+ assert result == container_tree.machines["current_global_stack"].getQualityChangesGroups.return_value \ No newline at end of file