mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-21 04:32:23 +00:00
ifc2x3 tests
removed part of test_append_two_type_products_sharing_the_same_material_indirectly_via_a_material_set for ifc2x3 compatibility and removed part is already tested in test_append_two_type_products_sharing_the_same_material_with_properties
This commit is contained in:
@@ -28,7 +28,7 @@ class TestEditPerson(test.bootstrap.IFC4):
|
||||
self.file,
|
||||
person=person,
|
||||
attributes={
|
||||
"Identification": "Identification",
|
||||
"Identification" if self.file.schema != "IFC2X3" else "Id": "Identification",
|
||||
"FamilyName": "FamilyName",
|
||||
"GivenName": "GivenName",
|
||||
"MiddleNames": ["Middle", "Names"],
|
||||
@@ -36,9 +36,14 @@ class TestEditPerson(test.bootstrap.IFC4):
|
||||
"SuffixTitles": ["Suffix", "Titles"],
|
||||
},
|
||||
)
|
||||
assert person.Identification == "Identification"
|
||||
# 0 IfcPerson Identification(>IFC2X3) / Id (IFC2X3)
|
||||
assert person[0] == "Identification"
|
||||
assert person.FamilyName == "FamilyName"
|
||||
assert person.GivenName == "GivenName"
|
||||
assert person.MiddleNames == ("Middle", "Names")
|
||||
assert person.PrefixTitles == ("Prefix", "Titles")
|
||||
assert person.SuffixTitles == ("Suffix", "Titles")
|
||||
|
||||
|
||||
class TestEditPersonIFC2X3(test.bootstrap.IFC2X3, TestEditPerson):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user