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 07ba174 commit 297b4deCopy full SHA for 297b4de
meilisearch/tests/client/test_client_dumps.py
@@ -1,7 +1,9 @@
1
import json
2
import time
3
+import pytest
4
import meilisearch
5
from meilisearch.tests import BASE_URL, MASTER_KEY, clear_all_indexes
6
+from meilisearch.errors import MeiliSearchApiError
7
8
class TestClientDumps:
9
@@ -39,3 +41,8 @@ def test_dump_status_route(self):
39
41
time.sleep(0.1)
40
42
dump_status = self.client.get_dump_status(dump['uid'])
43
assert dump_status['status'] == 'done'
44
+
45
+ def test_dump_status_nonexistent_uid_raises_error(self):
46
+ """Tests the route for getting a nonexistent dump status"""
47
+ with pytest.raises(MeiliSearchApiError):
48
+ self.client.get_dump_status('uid_not_exists')
0 commit comments