mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Test util.element module. See #1711.
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user