Unify variant storage (#5118)

This commit is contained in:
Thomas Krijnen
2024-08-23 20:29:07 +02:00
committed by GitHub
parent e2001e82dd
commit d80bcd1a94
107 changed files with 118028 additions and 142394 deletions
@@ -28,9 +28,11 @@ class TestOpen:
def test_open_ifcspf(self):
assert ifcopenshell.open(TEST_FILE_DIR / "WallInstance_IFC4Add2.ifc")
@pytest.mark.skip("IFC-XML temporarily disabled")
def test_open_ifcxml(self):
assert ifcopenshell.open(TEST_FILE_DIR / "wall-with-opening-and-window.ifcxml")
@pytest.mark.skip("IFC-XML temporarily disabled")
def test_open_ifc_zip_ifcxml_format(self):
assert ifcopenshell.open(TEST_FILE_DIR / "wall-with-opening-and-window_ifcxml_format.ifczip")
@@ -49,16 +51,19 @@ class TestOpen:
".ifcZIP",
)
@pytest.mark.skip("IFC-XML temporarily disabled")
def test_open_anyextension_ifcxml_format(self):
assert ifcopenshell.open(
TEST_FILE_DIR / "wall-with-opening-and-window_ifcxml_format.anyextension",
".ifcXML",
)
@pytest.mark.skip("IFC-XML temporarily disabled")
def test_invalid_ifcspf(self):
with pytest.raises(ifcopenshell.Error):
assert ifcopenshell.open(TEST_FILE_DIR / "invalid.ifc")
@pytest.mark.skip("IFC-XML temporarily disabled")
def test_invalid_ifcxml(self):
with pytest.raises(IOError):
assert ifcopenshell.open(TEST_FILE_DIR / "invalid.ifcxml")