Skip to content

Commit 195079a

Browse files
committed
Remove comments changes of client.py and dump_test.py
1 parent 199a080 commit 195079a

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

meilisearch/client.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ def create_index(self, uid, options=None):
3232
Parameters
3333
----------
3434
uid: str
35-
UID of the index.
35+
UID of the index
3636
options: dict, optional
37-
Options passed during index creation (ex: primaryKey).
37+
Options passed during index creation (ex: primaryKey)
3838
3939
Returns
4040
-------
4141
index : Index
42-
An instance of Index containing the information of the newly created index.
42+
an instance of Index containing the information of the newly created index
4343
Raises
4444
------
4545
HTTPError
@@ -57,8 +57,8 @@ def get_indexes(self):
5757
In case of any error found here https://docs.meilisearch.com/references/#errors-status-code
5858
Returns
5959
-------
60-
indexes: list
61-
List of indexes in dictionary format. (e.g [{ 'uid': 'movies' 'primaryKey': 'objectID' }])
60+
list
61+
List of indexes in dictionnary format. (e.g [{ 'uid': 'movies' 'primaryKey': 'objectID' }])
6262
"""
6363
return Index.list_all(self.config)
6464

@@ -133,30 +133,29 @@ def get_all_stats(self):
133133
134134
Get information about database size and all indexes
135135
https://docs.meilisearch.com/references/stats.html
136-
137136
Returns
138-
-------
137+
----------
139138
stats: `dict`
140-
Dictionary containing stats about your MeiliSearch instance.
139+
Dictionnary containing stats about your MeiliSearch instance
141140
"""
142141
return self.http.get(self.config.paths.stat)
143142

144143
def health(self):
145-
"""Get health of the MeiliSearch server.
144+
"""Get health of MeiliSearch
146145
147146
`204` HTTP status response when MeiliSearch is healthy.
148147
149148
Raises
150149
----------
151150
HTTPError
152-
If MeiliSearch is not healthy.
151+
If MeiliSearch is not healthy
153152
"""
154153
return self.http.get(self.config.paths.health)
155154

156155
def get_keys(self):
157-
"""Get all keys.
156+
"""Get all keys created
158157
159-
Get list of all the keys.
158+
Get list of all the keys that were created and all their related information.
160159
161160
Returns
162161
----------
@@ -187,7 +186,7 @@ def version(self):
187186
return self.get_version()
188187

189188
def create_dump(self):
190-
"""Trigger the creation of a MeiliSearch dump.
189+
"""Triggers the creation of a MeiliSearch dump
191190
192191
Returns
193192
----------
@@ -198,15 +197,15 @@ def create_dump(self):
198197
return self.http.post(self.config.paths.dumps)
199198

200199
def get_dump_status(self, uid):
201-
"""Retrieve the status of a MeiliSearch dump creation.
200+
"""Retrieves the status of a MeiliSearch dump creation
202201
203202
Parameters
204203
----------
205204
uid: str
206-
UID of the dump.
205+
UID of the dump
207206
208207
Returns
209-
-------
208+
----------
210209
Dump status: dict
211210
Information about the dump status.
212211
https://docs.meilisearch.com/references/dump.html#get-dump-status

meilisearch/tests/client/test_client_dumps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def teardown_method(self, method):
2929
self.client.index('indexUID-' + method.__name__).delete()
3030

3131
def teardown_class(self):
32-
"""Cleans all indexes in MeiliSearch when all the tests are done"""
32+
"""Cleans all indexes in MEiliSearch when all the test are done"""
3333
clear_all_indexes(self.client)
3434

3535
def test_dump_creation(self):

0 commit comments

Comments
 (0)