Test util.element module. See #1711.

This commit is contained in:
Dion Moult
2021-08-31 15:44:57 +10:00
parent b1b3d7e312
commit 5990d6b66d
5 changed files with 266 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
import pytest
import ifcopenshell.api
class IFC4:
@pytest.fixture(autouse=True)
def setup(self):
self.file = ifcopenshell.api.run("project.create_file")
class IFC2X3:
@pytest.fixture(autouse=True)
def setup(self):
self.file = ifcopenshell.api.run("project.create_file", version="IFC2X3")
ifcopenshell.api.owner.settings.get_person = lambda ifc: ifc.createIfcPerson()
ifcopenshell.api.owner.settings.get_organisation = lambda ifc: ifc.createIfcOrganization()
ifcopenshell.api.owner.settings.get_application = lambda ifc: ifc.createIfcApplication()