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):