Skip to content

Commit 233b981

Browse files
committed
fix: refactored code
1 parent e3ea9c3 commit 233b981

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ def clear_indexes(client):
3434
@fixture(autouse=True)
3535
def clear_webhooks(client):
3636
"""
37-
Auto-clears the web hooks after each test function run.
37+
Auto-clears the webhooks after each test function run.
3838
Makes all the test functions independent.
3939
"""
40-
# Deletes all the indexes in the Meilisearch instance.
40+
# Yields back to the test function.
41+
42+
yield
43+
# Deletes all the webhooks in the Meilisearch instance.
4144
webhooks = client.get_webhooks()
4245
for webhook in webhooks.results:
4346
client.delete_webhook(webhook.uuid)

0 commit comments

Comments
 (0)