Fix failing tests from refactor which I really should've done before the release

This commit is contained in:
Dion Moult
2023-01-09 11:00:46 +11:00
parent 1888048d4d
commit 360b9956c0
6 changed files with 35 additions and 35 deletions
@@ -22,7 +22,7 @@ import ifcopenshell.api
class TestAddSIUnit(test.bootstrap.IFC4):
def test_run(self):
unit = ifcopenshell.api.run("unit.add_si_unit", self.file, unit_type="LENGTHUNIT", name="METRE", prefix="MILLI")
unit = ifcopenshell.api.run("unit.add_si_unit", self.file, unit_type="LENGTHUNIT", prefix="MILLI")
assert unit.UnitType == "LENGTHUNIT"
assert unit.Name == "METRE"
assert unit.Prefix == "MILLI"
+2 -1
View File
@@ -5,6 +5,7 @@ import glob
import pytest
import tabulate
import ifcopenshell.validate
import ifcopenshell.express.rule_executor
@@ -40,4 +41,4 @@ def test_file(filename):
if __name__ == "__main__":
pytest.main(["-sx", __file__])
pytest.main(["-sx", __file__])
+1 -1
View File
@@ -26,7 +26,7 @@ TEST_FILE_DIR = Path("../../test/input/")
class TestWrite:
def setup(self):
def setup_method(self):
self.model = ifcopenshell.open(TEST_FILE_DIR / "WallInstance_IFC4Add2.ifc")
def assert_model_is_written(self, filename, format=None, zipped=False):