Skip to content

Commit 643365d

Browse files
bors[bot]meili-botcurquiza
authored
Merge #240
240: Changes related to the next MeiliSearch release (v0.20.0) r=curquiza a=meili-bot This PR: - gathers the changes related to the next MeiliSearch release (v0.20.0) so that this package is ready when the official release is out. - should pass the tests against the [latest pre-release of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases). - might eventually contain test failures until the MeiliSearch v0.20.0 is out. ⚠️ This PR should NOT be merged until the next release of MeiliSearch (v0.20.0) is out. _This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/master/guides/pre-release-week.md) purpose._ Co-authored-by: meili-bot <[email protected]> Co-authored-by: Clémentine Urquizar <[email protected]>
2 parents c9272ef + 52c6e39 commit 643365d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ JSON output:
148148

149149
## 🤖 Compatibility with MeiliSearch
150150

151-
This package only guarantees the compatibility with the [version v0.19.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.19.0).
151+
This package only guarantees the compatibility with the [version v0.20.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.20.0).
152152

153153
## 💡 Learn More
154154

meilisearch/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_all_stats(self):
152152
def health(self):
153153
"""Get health of the MeiliSearch server.
154154
155-
`204` HTTP status response when MeiliSearch is healthy.
155+
`200` HTTP status response when MeiliSearch is healthy.
156156
157157
Raises
158158
------

meilisearch/tests/client/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ def test_get_client():
99
client = meilisearch.Client(BASE_URL, MASTER_KEY)
1010
assert client.config
1111
response = client.health()
12-
assert response.status_code >= 200 and response.status_code < 400
12+
assert response['status'] == 'available'
1313

1414

1515
def test_client_timeout_set():
1616
timeout = 5
1717
client = meilisearch.Client(BASE_URL, MASTER_KEY, timeout=timeout)
1818
response = client.health()
1919
assert client.config.timeout == timeout
20-
assert response.status_code >= 200 and response.status_code < 400
20+
assert response['status'] == 'available'
2121

2222

2323
def test_client_timeout_not_set():
2424
default_timeout = None
2525
client = meilisearch.Client(BASE_URL, MASTER_KEY)
2626
response = client.health()
2727
assert client.config.timeout == default_timeout
28-
assert response.status_code >= 200 and response.status_code < 400
28+
assert response['status'] == 'available'

meilisearch/tests/client/test_client_health_meilisearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
def test_health(client):
33
"""Tests checking the health of the MeiliSearch instance."""
44
response = client.health()
5-
assert response.status_code >= 200 and response.status_code < 400
5+
assert response['status'] == 'available'

0 commit comments

Comments
 (0)