Fix the_object_name_does_not_exist not checking for errors

`assert True` was introduced in 1c1035e and original implementation with `assert False` was removed in b0d8101
This commit is contained in:
Andrej730
2025-11-10 14:06:43 +05:00
parent 1609a77b77
commit ac11baa0c4
+2 -4
View File
@@ -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'))