This commit is contained in:
Andrej730
2024-03-29 10:56:06 +05:00
parent 36527d0e9d
commit 7be396474c
3 changed files with 71 additions and 41 deletions
+9 -1
View File
@@ -21,9 +21,17 @@ import pytest
import xmlschema
import ifcopenshell
from ifctester import ids
from typing import Optional
def run(name, ids, ifc, expected, applicable_entities=None, failed_entities=None):
def run(
name: str,
ids: ids.Ids,
ifc: ifcopenshell.file,
expected: bool,
applicable_entities: Optional[list[ifcopenshell.entity_instance]] = None,
failed_entities: Optional[list[ifcopenshell.entity_instance]] = None,
):
ids.validate(ifc)
all_applicable = set()
all_failures = set()