Skip to content

Commit 419b50c

Browse files
bors[bot]Azanulalallema
authored
Merge #675
675: test_delete_all_tasks updated r=alallema a=Azanul # Pull Request ## Related issue Fixes #648 ## What does this PR do? - ... ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Azanul Haque <[email protected]> Co-authored-by: Amélie <[email protected]>
2 parents 1ecf348 + a9f3147 commit 419b50c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/client/test_client_task_meilisearch.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ def test_delete_tasks_by_uid(client, empty_index, small_movies):
151151
assert f"uids={task_addition.task_uid}" in task["details"]["originalFilter"]
152152

153153

154-
def test_delete_all_tasks(client):
155-
tasks_before = client.get_tasks()
154+
def test_delete_tasks_by_filter(client):
156155
task = client.delete_tasks({"statuses": ["succeeded", "failed", "canceled"]})
157156
client.wait_for_task(task.task_uid)
158157
tasks_after = client.get_tasks()
@@ -162,7 +161,6 @@ def test_delete_all_tasks(client):
162161
assert task.index_uid is None
163162
assert task.type == "taskDeletion"
164163
assert len(tasks_after["results"]) >= 1
165-
assert len(tasks_before["results"]) == len(tasks_after["results"])
166164
assert (
167165
"statuses=succeeded%2Cfailed%2Ccanceled"
168166
in tasks_after["results"][0]["details"]["originalFilter"]

0 commit comments

Comments
 (0)