From 922c8ccbc9c2d7e4caf65678173e60aaface44b9 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Fri, 16 Aug 2024 00:39:35 +0200 Subject: [PATCH] Fix unit test. It's not enough (or even nescesary) to mock the (now wrapper) method, since we use the underlaying method in our code now. done as part of CURA-11501 --- tests/Machines/TestVariantNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Machines/TestVariantNode.py b/tests/Machines/TestVariantNode.py index e15d64a444..124010a4b3 100644 --- a/tests/Machines/TestVariantNode.py +++ b/tests/Machines/TestVariantNode.py @@ -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.isExcludedMaterialBaseFile = MagicMock(side_effect=lambda material: material == "material_1") node = createVariantNode("variant_1", machine_node, container_registry) assert "material_1" not in node.materials