(name)
| 1162 | @when(parsers.parse('the collection "{name}" exists')) |
| 1163 | @then(parsers.parse('the collection "{name}" exists')) |
| 1164 | def 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')) |
no test coverage detected