mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +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.validate
|
||||||
import ifcopenshell.express.rule_executor
|
import ifcopenshell.express.rule_executor
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"filename",
|
"filename",
|
||||||
[
|
[
|
||||||
fn
|
fn
|
||||||
for fn in glob.glob(os.path.join(os.path.dirname(__file__), "fixtures/rules/*.ifc"))
|
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):
|
def test_file(filename):
|
||||||
|
|||||||
Reference in New Issue
Block a user