mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
Run black on IfcOpenShell-python.
This commit is contained in:
@@ -5,14 +5,19 @@ import ifcopenshell.api
|
||||
class TestEditPerson(test.bootstrap.IFC4):
|
||||
def test_editing_a_person(self):
|
||||
person = self.file.createIfcPerson()
|
||||
ifcopenshell.api.run("owner.edit_person", self.file, person=person, attributes={
|
||||
"Identification": "Identification",
|
||||
"FamilyName": "FamilyName",
|
||||
"GivenName": "GivenName",
|
||||
"MiddleNames": ["Middle", "Names"],
|
||||
"PrefixTitles": ["Prefix", "Titles"],
|
||||
"SuffixTitles": ["Suffix", "Titles"],
|
||||
})
|
||||
ifcopenshell.api.run(
|
||||
"owner.edit_person",
|
||||
self.file,
|
||||
person=person,
|
||||
attributes={
|
||||
"Identification": "Identification",
|
||||
"FamilyName": "FamilyName",
|
||||
"GivenName": "GivenName",
|
||||
"MiddleNames": ["Middle", "Names"],
|
||||
"PrefixTitles": ["Prefix", "Titles"],
|
||||
"SuffixTitles": ["Suffix", "Titles"],
|
||||
},
|
||||
)
|
||||
assert person.Identification == "Identification"
|
||||
assert person.FamilyName == "FamilyName"
|
||||
assert person.GivenName == "GivenName"
|
||||
|
||||
Reference in New Issue
Block a user