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

Function test_get_class_properties

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

Source from the content-addressed store, hash-verified

46
47
48def test_get_class_properties():
49 uri_light_fixture = next(l for l in get_ifc_classes()["classes"] if "IfcLightFixture" == l["code"])["uri"]
50 ifc4x3_light_fixture_properties = client.get_class_properties(uri_light_fixture)
51 assert "Maintenance Factor" and "Light Fixture Mounting Type" in [
52 l["name"] for l in ifc4x3_light_fixture_properties["classProperties"]
53 ]
54
55
56def test_search_class():

Callers

nothing calls this directly

Calls 2

get_ifc_classesFunction · 0.70
get_class_propertiesMethod · 0.45

Tested by

no test coverage detected