mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Small tweak to invocation of test/test_rules.py
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user