mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix tests
This commit is contained in:
parent
577365cf96
commit
84080b675b
1 changed files with 5 additions and 4 deletions
|
|
@ -104,6 +104,7 @@ def test_variantNodeInit_excludedMaterial(container_registry, machine_node):
|
||||||
def test_materialAdded(container_registry, machine_node, metadata, material_result_list):
|
def test_materialAdded(container_registry, machine_node, metadata, material_result_list):
|
||||||
variant_node = createVariantNode("machine_1", machine_node, container_registry)
|
variant_node = createVariantNode("machine_1", machine_node, container_registry)
|
||||||
machine_node.exclude_materials = ["material_3"]
|
machine_node.exclude_materials = ["material_3"]
|
||||||
|
with patch("UM.Settings.ContainerRegistry.ContainerRegistry.getInstance", MagicMock(return_value = container_registry)):
|
||||||
with patch("cura.Machines.VariantNode.MaterialNode"): # We're not testing the material node here, so patch it out.
|
with patch("cura.Machines.VariantNode.MaterialNode"): # We're not testing the material node here, so patch it out.
|
||||||
with patch.dict(metadata_dict, metadata):
|
with patch.dict(metadata_dict, metadata):
|
||||||
mocked_container = createMockedInstanceContainer()
|
mocked_container = createMockedInstanceContainer()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue