diff options
author | Ghostkeeper <rubend@tutanota.com> | 2019-10-04 15:27:24 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2019-10-04 16:35:33 +0300 |
commit | 5ae248341b5e3f95d3e4d05a769bdbbc00d761fd (patch) | |
tree | 43e89fc50e2cd01388c03687b31a7e85bd7057ab /tests/Settings | |
parent | 05801bb623ef94a297a7891c00739cec89fd5763 (diff) |
Add test for getting quality groups from the container tree
Finally it works.
Done during turbo testing and tooling.
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/TestCuraStackBuilder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Settings/TestCuraStackBuilder.py b/tests/Settings/TestCuraStackBuilder.py index cf4496d0a9..aebde3406f 100644 --- a/tests/Settings/TestCuraStackBuilder.py +++ b/tests/Settings/TestCuraStackBuilder.py @@ -56,7 +56,7 @@ def test_createMachine(application, container_registry, definition_container, gl quality_container, intent_container, quality_changes_container): variant_manager = MagicMock(name = "Variant Manager") quality_manager = MagicMock(name = "Quality Manager") - global_variant_node = MagicMock( name = "global variant node") + global_variant_node = MagicMock(name = "global variant node") global_variant_node.container = global_variant variant_manager.getDefaultVariantNode = MagicMock(return_value = global_variant_node) @@ -98,7 +98,7 @@ def test_createExtruderStack(application, definition_container, global_variant, application.empty_quality_container = quality_container application.empty_intent_container = intent_container application.empty_quality_changes_container = quality_changes_container - with patch("cura.CuraApplication.CuraApplication.getInstance", MagicMock(return_value=application)): + with patch("cura.CuraApplication.CuraApplication.getInstance", MagicMock(return_value = application)): extruder_stack = CuraStackBuilder.createExtruderStack("Whatever", definition_container, "meh", 0, global_variant, material_instance_container, quality_container) assert extruder_stack.variant == global_variant assert extruder_stack.material == material_instance_container |