See #3126. Forgot to commit tests related to explicit schema versions.

This commit is contained in:
Dion Moult
2023-07-06 20:56:20 +10:00
parent 22ffd3d2b7
commit e8d6f122f3
+14
View File
@@ -156,6 +156,20 @@ class TestFile(test.bootstrap.IFC4):
def test_creating_a_new_file(self):
f = ifcopenshell.file(schema="IFC4")
assert f.schema == "IFC4"
assert f.schema_identifier == "IFC4"
assert f.schema_version == (4, 0, 0, 0)
def test_creating_an_ifc4x3_file(self):
f = ifcopenshell.file(schema="IFC4X3")
assert f.schema == "IFC4X3"
assert f.schema_identifier == "IFC4X3_ADD1"
assert f.schema_version == (4, 3, 1, 0)
def test_creating_a_specific_version(self):
f = ifcopenshell.file(schema_version=(4, 3, 0, 1))
assert f.schema == "IFC4X3_TC1"
assert f.schema_identifier == "IFC4X3_TC1"
assert f.schema_version == (4, 3, 0, 1)
def test_creating_an_entity(self):
element = self.file.create_entity("IfcPerson")