See #3126 and 5b4010c. Fix failing tests, and allow schema_by_name to follow the same schema_version distinction as file.

This commit is contained in:
Dion Moult
2023-07-06 22:40:15 +10:00
parent 72907cd3f0
commit a970120fac
3 changed files with 68 additions and 5 deletions
@@ -103,7 +103,7 @@ def run(f, logger):
cd = compile(a, f"{f.schema}.py", "exec")
scope = {}
exec(cd, scope)
S = ifcopenshell.ifcopenshell_wrapper.schema_by_name(f.schema)
S = ifcopenshell.ifcopenshell_wrapper.schema_by_name(f.schema_identifier)
rules = list(filter(lambda x: hasattr(x, "SCOPE"), scope.values()))