Files
IfcOpenShell/src/ifcopenshell-python/test/bootstrap.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
627 B
Python
Raw Normal View History

2021-08-31 15:44:57 +10:00
import pytest
2021-08-31 18:33:52 +10:00
import ifcopenshell
2021-08-31 15:44:57 +10:00
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()