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

Function test_get_class

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

Source from the content-addressed store, hash-verified

30
31
32def test_get_class():
33 uri_light_fixture = next(l for l in get_ifc_classes()["classes"] if "IfcLightFixture" == l["code"])["uri"]
34 ifc4x3_light_fixture = client.get_class(uri_light_fixture)
35 assert "Maintenance Factor" and "Light Fixture Mounting Type" in [
36 l["name"] for l in ifc4x3_light_fixture["classProperties"]
37 ]
38
39
40def test_get_class_relations():

Callers

nothing calls this directly

Calls 2

get_ifc_classesFunction · 0.70
get_classMethod · 0.45

Tested by

no test coverage detected