mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Fix the_object_name_does_not_exist not checking for errors
`assert True` was introduced in1c1035eand original implementation with `assert False` was removed inb0d8101
This commit is contained in:
@@ -1015,11 +1015,9 @@ def the_object_name_exists(name: str) -> bpy.types.Object:
|
||||
|
||||
|
||||
@then(parsers.parse('the object "{name}" does not exist'))
|
||||
def the_object_name_does_not_exist(name) -> bpy.types.Object:
|
||||
def the_object_name_does_not_exist(name) -> None:
|
||||
obj = bpy.data.objects.get(name)
|
||||
if not obj:
|
||||
assert True, f'The object "{name}" exists'
|
||||
return obj
|
||||
assert obj is None, f'The object "{name}" exists'
|
||||
|
||||
|
||||
@given(parsers.parse('the collection "{name}" exists'))
|
||||
|
||||
Reference in New Issue
Block a user