We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773eebc commit a9608a8Copy full SHA for a9608a8
tests/features/steps/1_setup.py
@@ -1,5 +1,4 @@
1
import json
2
-from contextlib import suppress
3
4
from behave import * # noqa
5
from behave.runner import Context
@@ -55,5 +54,5 @@ def create_document_reference_step(context: Context):
55
54
56
def clean_up_test_pointer(context: Context, doc_pointer: DocumentPointer):
57
"""Remove a pointer during cleanup without failing if it has already been deleted"""
58
- with suppress(Exception):
+ if context.repository.get_by_id(doc_pointer.id):
59
context.repository.delete(doc_pointer)
0 commit comments