From 43f78605f278a33bc4e02e30ba2f6a1be3cb172a Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 15 Jan 2026 13:00:48 +0100 Subject: [PATCH] Small tweak to invocation of test/test_rules.py --- src/ifcopenshell-python/test/test_rules.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/test/test_rules.py b/src/ifcopenshell-python/test/test_rules.py index a54e98ed68..d8b79411c8 100644 --- a/src/ifcopenshell-python/test/test_rules.py +++ b/src/ifcopenshell-python/test/test_rules.py @@ -8,13 +8,12 @@ import tabulate import ifcopenshell.validate import ifcopenshell.express.rule_executor - @pytest.mark.parametrize( "filename", [ fn for fn in glob.glob(os.path.join(os.path.dirname(__file__), "fixtures/rules/*.ifc")) - if len(sys.argv) < 2 or sys.argv[1] in os.path.basename(fn) + if len(sys.argv) < 2 or (not sys.argv[1].endswith(".ifc") or sys.argv[1] in os.path.basename(fn)) ], ) def test_file(filename):