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

Function the_collection_name_exists

src/bonsai/test/bim/test_feature.py:1164–1168  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1162@when(parsers.parse('the collection "{name}" exists'))
1163@then(parsers.parse('the collection "{name}" exists'))
1164def the_collection_name_exists(name) -> bpy.types.Collection:
1165 obj = bpy.data.collections.get(name)
1166 if not obj:
1167 assert False, f'The collection "{name}" does not exist'
1168 return obj
1169
1170
1171@then(parsers.parse('the collection "{name}" is selectable'))

Calls 1

getMethod · 0.45

Tested by

no test coverage detected