From 18c9140700f448cfd3c9ad415bc442de9cd4d906 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 14 Jan 2026 14:03:03 +0100 Subject: [PATCH] Data types --- .../test/api/cost/test_remove_cost_item.py | 4 ++-- src/ifcopenshell-python/test/api/project/test_append_asset.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/test/api/cost/test_remove_cost_item.py b/src/ifcopenshell-python/test/api/cost/test_remove_cost_item.py index a987063769..ebb8831d14 100644 --- a/src/ifcopenshell-python/test/api/cost/test_remove_cost_item.py +++ b/src/ifcopenshell-python/test/api/cost/test_remove_cost_item.py @@ -33,7 +33,7 @@ class TestRemoveCostItem(test.bootstrap.IFC4): item1 = ifcopenshell.api.cost.add_cost_item(self.file, cost_schedule=schedule) item2 = ifcopenshell.api.cost.add_cost_item(self.file, cost_item=item1) ifcopenshell.api.cost.remove_cost_item(self.file, cost_item=item2) - assert self.file.by_type("IfcCostItem") == [item1] + assert self.file.by_type("IfcCostItem") == (item1,) assert self.file.by_type("IfcRelAssignsToControl") assert not self.file.by_type("IfcRelNests") @@ -51,7 +51,7 @@ class TestRemoveCostItem(test.bootstrap.IFC4): item1 = ifcopenshell.api.cost.add_cost_item(self.file, cost_schedule=schedule) item2 = ifcopenshell.api.cost.add_cost_item(self.file, cost_schedule=schedule) ifcopenshell.api.cost.remove_cost_item(self.file, cost_item=item1) - assert self.file.by_type("IfcCostItem") == [item2] + assert self.file.by_type("IfcCostItem") == (item2,) rel = next(iter(self.file.by_type("IfcRelAssignsToControl")), None) assert rel assert rel.RelatedObjects == (item2,) diff --git a/src/ifcopenshell-python/test/api/project/test_append_asset.py b/src/ifcopenshell-python/test/api/project/test_append_asset.py index 399ee1fd04..fcd8168678 100644 --- a/src/ifcopenshell-python/test/api/project/test_append_asset.py +++ b/src/ifcopenshell-python/test/api/project/test_append_asset.py @@ -479,7 +479,7 @@ class TestAppendAssetIFC2X3(test.bootstrap.IFC2X3): ) new_style = ifcopenshell.api.project.append_asset(self.file, library=library, element=style) - assert self.file.by_type("IfcSurfaceStyle") == [new_style] + assert self.file.by_type("IfcSurfaceStyle") == (new_style,) assert new_style.Name == style_name style_elements = new_style.Styles assert len(style_elements) == 1