From ea3f71b4e00fa4da4651fee44b079ad3aac1a8fb Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 20 Mar 2026 12:20:30 +0500 Subject: [PATCH] rename test files to test_* prefix for pytest discovery and fix missing add_pset name arg --- src/ifcopenshell-python/test/{file_gc.py => test_file_gc.py} | 2 +- .../test/{global_id_updates.py => test_global_id_updates.py} | 0 ..._string_formatting.py => test_instance_string_formatting.py} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename src/ifcopenshell-python/test/{file_gc.py => test_file_gc.py} (99%) rename src/ifcopenshell-python/test/{global_id_updates.py => test_global_id_updates.py} (100%) rename src/ifcopenshell-python/test/{instance_string_formatting.py => test_instance_string_formatting.py} (100%) diff --git a/src/ifcopenshell-python/test/file_gc.py b/src/ifcopenshell-python/test/test_file_gc.py similarity index 99% rename from src/ifcopenshell-python/test/file_gc.py rename to src/ifcopenshell-python/test/test_file_gc.py index 483c268e17..532fa664ec 100644 --- a/src/ifcopenshell-python/test/file_gc.py +++ b/src/ifcopenshell-python/test/test_file_gc.py @@ -95,7 +95,7 @@ def test_bug_2486_a(): file = ifcopenshell.api.project.create_file() mymaterial = ifcopenshell.api.material.add_material(file) - pset = ifcopenshell.api.pset.add_pset(file, product=mymaterial) + pset = ifcopenshell.api.pset.add_pset(file, product=mymaterial, name="Foo") ifcopenshell.api.pset.edit_pset( file, pset=pset, diff --git a/src/ifcopenshell-python/test/global_id_updates.py b/src/ifcopenshell-python/test/test_global_id_updates.py similarity index 100% rename from src/ifcopenshell-python/test/global_id_updates.py rename to src/ifcopenshell-python/test/test_global_id_updates.py diff --git a/src/ifcopenshell-python/test/instance_string_formatting.py b/src/ifcopenshell-python/test/test_instance_string_formatting.py similarity index 100% rename from src/ifcopenshell-python/test/instance_string_formatting.py rename to src/ifcopenshell-python/test/test_instance_string_formatting.py