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
@@ -5,6 +5,6 @@ FILE_NAME('','2023-04-13T10:27:43',(),(),'IfcOpenShell v0.7.0-198fa67cc','IfcOpe
FILE_SCHEMA(('IFC4'));
ENDSEC;
DATA;
#1=IFCPRESENTATIONSTYLEASSIGNMENT((IFCNULLSTYLE('NOT_EXISTING_ENUM')));
#1=IFCPRESENTATIONSTYLEASSIGNMENT((IFCNULLSTYLE(.NOT_EXISTING_ENUM.)));
ENDSEC;
END-ISO-10303-21;
@@ -0,0 +1,10 @@
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
FILE_NAME('','2023-04-13T10:27:43',(),(),'IfcOpenShell v0.7.0-198fa67cc','IfcOpenShell v0.7.0-198fa67cc','');
FILE_SCHEMA(('IFC4'));
ENDSEC;
DATA;
#1=IFCPROPERTYSINGLEVALUE('Test',$,IFCCOMPLEXNUMBER((0.,0.)),$);
ENDSEC;
END-ISO-10303-21;
@@ -5,6 +5,6 @@ FILE_NAME('','2023-04-13T10:27:43',(),(),'IfcOpenShell v0.7.0-198fa67cc','IfcOpe
FILE_SCHEMA(('IFC4'));
ENDSEC;
DATA;
#1=IFCPRESENTATIONSTYLEASSIGNMENT((IFCNULLSTYLE('NULL')));
#1=IFCPRESENTATIONSTYLEASSIGNMENT((IFCNULLSTYLE(.NULL.)));
ENDSEC;
END-ISO-10303-21;
@@ -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")