mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +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'))
|
@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)
|
obj = bpy.data.objects.get(name)
|
||||||
if not obj:
|
assert obj is None, f'The object "{name}" exists'
|
||||||
assert True, f'The object "{name}" exists'
|
|
||||||
return obj
|
|
||||||
|
|
||||||
|
|
||||||
@given(parsers.parse('the collection "{name}" exists'))
|
@given(parsers.parse('the collection "{name}" exists'))
|
||||||
|
|||||||
Reference in New Issue
Block a user