mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix failing IOS tests
This commit is contained in:
@@ -29,14 +29,14 @@ def get_ifc_sqlite() -> ifcopenshell.sqlite:
|
||||
global SQLITE_PATH
|
||||
if SQLITE_PATH is None:
|
||||
tmp = tempfile.NamedTemporaryFile(delete=False, suffix=".ifcsqlite")
|
||||
SQLITE_PATH = ifcpatch.execute(
|
||||
ifcpatch.execute(
|
||||
{
|
||||
"file": ifcopenshell.open(TEST_FILE),
|
||||
"recipe": "Ifc2Sql",
|
||||
"arguments": ["sqlite", None, None, None, tmp.name],
|
||||
}
|
||||
)
|
||||
assert isinstance(SQLITE_PATH, str)
|
||||
SQLITE_PATH = tmp.name
|
||||
ifc_sqlite = ifcopenshell.open(SQLITE_PATH)
|
||||
assert isinstance(ifc_sqlite, ifcopenshell.sqlite)
|
||||
return ifc_sqlite
|
||||
|
||||
Reference in New Issue
Block a user