mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
bsdd: fix test_get_class_relations
`classRelations` doesn't exist on `ClassPropertiesContractV1`, probably was just a typo.
(cherry picked from commit a7a7edfd27)
This commit is contained in:
@@ -40,7 +40,7 @@ def test_get_class():
|
|||||||
|
|
||||||
def test_get_class_relations():
|
def test_get_class_relations():
|
||||||
uri_light_fixture = next(l for l in get_ifc_classes()["classes"] if "IfcLightFixture" == l["code"])["uri"]
|
uri_light_fixture = next(l for l in get_ifc_classes()["classes"] if "IfcLightFixture" == l["code"])["uri"]
|
||||||
ifc4x3_light_fixture_relations = client.get_class_properties(uri_light_fixture, True)
|
ifc4x3_light_fixture_relations = client.get_class_relations(uri_light_fixture, True)
|
||||||
assert "Electrical unit for light-line system" and "Tubelight system" in [
|
assert "Electrical unit for light-line system" and "Tubelight system" in [
|
||||||
r["className"] for r in ifc4x3_light_fixture_relations["classRelations"]
|
r["className"] for r in ifc4x3_light_fixture_relations["classRelations"]
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user