()
| 28 | |
| 29 | |
| 30 | def get_ifc_sqlite() -> ifcopenshell.sqlite: |
| 31 | global SQLITE_PATH |
| 32 | if SQLITE_PATH is None: |
| 33 | tmp = tempfile.NamedTemporaryFile(delete=False, suffix=".ifcsqlite") |
| 34 | ifc_file = ifcopenshell.open(TEST_FILE) |
| 35 | assert isinstance(ifc_file, ifcopenshell.file) |
| 36 | patcher = Ifc2Sql.Patcher(ifc_file, database=tmp.name) |
| 37 | patcher.patch() |
| 38 | SQLITE_PATH = tmp.name |
| 39 | ifc_sqlite = ifcopenshell.open(SQLITE_PATH) |
| 40 | assert isinstance(ifc_sqlite, ifcopenshell.sqlite) |
| 41 | return ifc_sqlite |
| 42 | |
| 43 | |
| 44 | class TestFile: |
no test coverage detected