Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Aug 15, 2024
1 parent 1e5fa85 commit b8bba65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Machines/TestVariantNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_variantNodeInit(container_registry, machine_node):

def test_variantNodeInit_excludedMaterial(container_registry, machine_node):
machine_node.exclude_materials = ["material_1"]
machine_node.isExcludedMaterial = MagicMock(side_effect=lambda material: material["id"] == "material_1")
machine_node.isExcludedMaterial = MagicMock(side_effect=lambda material: material == "material_1")
node = createVariantNode("variant_1", machine_node, container_registry)

assert "material_1" not in node.materials
Expand Down

0 comments on commit b8bba65

Please sign in to comment.