Skip to content

Commit 57abb9b

Browse files
Merge #1061
1061: Test getting tasks in reverse r=sanders41 a=ellnix # Pull Request ## Related issue Fixes #1049 It's more a test of meilisearch itself than the integration with python, but it was required in the issue, and I suppose it would prevent a regression if the `get_tasks` parameters changed somehow. Co-authored-by: ellnix <[email protected]>
2 parents d0501ae + 80d1a87 commit 57abb9b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/client/test_client_task_meilisearch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,12 @@ def test_delete_tasks_by_filter(client):
156156
assert (
157157
"statuses=succeeded%2Cfailed%2Ccanceled" in tasks_after.results[0].details["originalFilter"]
158158
)
159+
160+
161+
@pytest.mark.usefixtures("create_tasks")
162+
def test_get_tasks_in_reverse(client):
163+
"""Tests getting the global tasks list in reverse."""
164+
tasks = client.get_tasks({})
165+
reverse_tasks = client.get_tasks({"reverse": "true"})
166+
167+
assert reverse_tasks.results[0] == tasks.results[-1]

0 commit comments

Comments
 (0)