mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
18 lines
541 B
Python
18 lines
541 B
Python
import pytest
|
|
import ifcopenshell
|
|
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_user = lambda ifc: ifc.createIfcPersonAndOrganization()
|
|
ifcopenshell.api.owner.settings.get_application = lambda ifc: ifc.createIfcApplication()
|