mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where schema instead of schema_identifer was used to get the schema_by_name. Fix tests to use IFC4X3_ADD2 so that you only need the official version compiled
This commit is contained in:
@@ -2,7 +2,7 @@ ISO-10303-21;
|
||||
HEADER;
|
||||
FILE_DESCRIPTION((''),'2;1');
|
||||
FILE_NAME('','2019-03-20T15:56:44',(''),(''),'BuildingSmart IfcKit by Constructivity','IfcDoc 12.0.0.0','');
|
||||
FILE_SCHEMA(('IFC4x1'));
|
||||
FILE_SCHEMA(('IFC4X3_ADD2'));
|
||||
ENDSEC;
|
||||
|
||||
DATA;
|
||||
|
||||
@@ -166,10 +166,10 @@ class TestFile(test.bootstrap.IFC4):
|
||||
assert f.schema_version == (4, 3, 2, 0)
|
||||
|
||||
def test_creating_a_specific_version(self):
|
||||
f = ifcopenshell.file(schema_version=(4, 3, 1, 0))
|
||||
f = ifcopenshell.file(schema_version=(4, 3, 2, 0))
|
||||
assert f.schema == "IFC4X3"
|
||||
assert f.schema_identifier == "IFC4X3_ADD1"
|
||||
assert f.schema_version == (4, 3, 1, 0)
|
||||
assert f.schema_identifier == "IFC4X3_ADD2"
|
||||
assert f.schema_version == (4, 3, 2, 0)
|
||||
|
||||
def test_creating_an_entity(self):
|
||||
element = self.file.create_entity("IfcPerson")
|
||||
|
||||
Reference in New Issue
Block a user