Skip to content

Commit b95f206

Browse files
bors[bot]sanders41
andauthored
Merge #223
223: Removing repeated tests r=bidoubiwa a=sanders41 These same tests are run in the [errors tests](https://github.com/meilisearch/meilisearch-python/blob/937b75f282111ecf13dd824119ff2d02650eb92e/meilisearch/tests/errors/test_api_error_meilisearch.py), but there they check for the specific error that should raise instead of a generic error so I removed the tests here. Co-authored-by: Paul Sanders <[email protected]>
2 parents ea00bdc + f1a8f44 commit b95f206

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# pylint: disable=invalid-name
22

3-
import pytest
43
import meilisearch
54
from meilisearch.tests import BASE_URL, MASTER_KEY
65

@@ -10,15 +9,3 @@ def test_get_client():
109
assert client.config
1110
response = client.health()
1211
assert response.status_code >= 200 and response.status_code < 400
13-
14-
def test_get_client_without_master_key():
15-
"""Tests getting a client instance without master key."""
16-
client = meilisearch.Client(BASE_URL)
17-
with pytest.raises(Exception):
18-
client.get_version()
19-
20-
def test_get_client_with_wrong_master_key():
21-
"""Tests getting a client instance with an invalid master key."""
22-
client = meilisearch.Client(BASE_URL, MASTER_KEY + "123")
23-
with pytest.raises(Exception):
24-
client.get_version()

0 commit comments

Comments
 (0)