mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
Optimise create owner history to not rely on a person and organisation lookup, speeding up long procedures
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import test.bootstrap
|
||||
import ifcopenshell.api
|
||||
|
||||
|
||||
class TestAddPerson(test.bootstrap.IFC4):
|
||||
def test_adding_a_person(self):
|
||||
person = ifcopenshell.api.run(
|
||||
"owner.add_person",
|
||||
self.file,
|
||||
identification="Identification",
|
||||
family_name="FamilyName",
|
||||
given_name="GivenName",
|
||||
)
|
||||
assert person.Identification == "Identification"
|
||||
assert person.FamilyName == "FamilyName"
|
||||
assert person.GivenName == "GivenName"
|
||||
Reference in New Issue
Block a user