MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / test_get_class_relations

Function test_get_class_relations

src/bsdd/tests/test_bsdd.py:40–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def test_get_class_relations():
41 uri_light_fixture = next(l for l in get_ifc_classes()["classes"] if "IfcLightFixture" == l["code"])["uri"]
42 ifc4x3_light_fixture_relations = client.get_class_properties(uri_light_fixture, True)
43 assert "Electrical unit for light-line system" and "Tubelight system" in [
44 r["className"] for r in ifc4x3_light_fixture_relations["classRelations"]
45 ]
46
47
48def test_get_class_properties():

Callers

nothing calls this directly

Calls 2

get_ifc_classesFunction · 0.70
get_class_propertiesMethod · 0.45

Tested by

no test coverage detected