File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ class TestMeiliSearchApiError:
7
7
8
8
""" TESTS: MeiliSearchApiError class """
9
9
10
- def test_meilisearch_api_error_no_master_key (self ):
10
+ @staticmethod
11
+ def test_meilisearch_api_error_no_master_key ():
11
12
client = meilisearch .Client (BASE_URL )
12
13
with pytest .raises (MeiliSearchApiError ):
13
- client .create_index ("Some index " )
14
+ client .create_index ("some_index " )
14
15
15
- def test_meilisearch_api_error_WRONG_master_key (self ):
16
+ @staticmethod
17
+ def test_meilisearch_api_error_wrong_master_key ():
16
18
client = meilisearch .Client (BASE_URL , MASTER_KEY + '123' )
17
19
with pytest .raises (MeiliSearchApiError ):
18
- client .create_index ("Some index " )
20
+ client .create_index ("some_index " )
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ class TestMeiliSearchCommunicationError:
7
7
8
8
""" TESTS: MeiliSearchCommunicationError class """
9
9
10
- def test_meilisearch_communication_error_host (self ):
11
- client = meilisearch .Client ("http://localhost:1234" , MASTER_KEY )
10
+ @staticmethod
11
+ def test_meilisearch_communication_error_host ():
12
+ client = meilisearch .Client ("http://wrongurl:1234" , MASTER_KEY )
12
13
with pytest .raises (MeiliSearchCommunicationError ):
13
- client .create_index ("Some index " )
14
+ client .create_index ("some_index " )
You can’t perform that action at this time.
0 commit comments