diff --git a/src/ifcopenshell-python/test/api/georeference/test_edit_true_north.py b/src/ifcopenshell-python/test/api/georeference/test_edit_true_north.py index 5076b46d67..9f8f2dd07a 100644 --- a/src/ifcopenshell-python/test/api/georeference/test_edit_true_north.py +++ b/src/ifcopenshell-python/test/api/georeference/test_edit_true_north.py @@ -30,7 +30,7 @@ class TestEditTrueNorth(test.bootstrap.IFC4): model = ifcopenshell.api.context.add_context(self.file, "Model") plan = ifcopenshell.api.context.add_context(self.file, "Plan") ifcopenshell.api.georeference.edit_true_north(self.file, true_north=[0.0, 1.0]) - assert model.TrueNorth[0] == (0.0, 1.0, 0.0) + assert model.TrueNorth[0] == (0.0, 1.0) assert plan.TrueNorth[0] == (0.0, 1.0) ifcopenshell.api.georeference.edit_true_north(self.file, true_north=[-0.5, 0.8660254]) assert np.isclose(ifcopenshell.util.geolocation.get_true_north(self.file), 30) diff --git a/src/ifcopenshell-python/test/test_sql.py b/src/ifcopenshell-python/test/test_sql.py index 8b4323a3c8..22fba621e1 100644 --- a/src/ifcopenshell-python/test/test_sql.py +++ b/src/ifcopenshell-python/test/test_sql.py @@ -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