Small tweak to invocation of test/test_rules.py

This commit is contained in:
Thomas Krijnen
2026-01-15 13:00:48 +01:00
parent 6cd1375cf9
commit 43f78605f2
+1 -2
View File
@@ -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):