Skip to content

Commit fd08d7c

Browse files
committed
Merge branch 'feat/1185-update-network-api-compat' of github.com:orbin123/meilisearch-python into feat/1185-update-network-api-compat
2 parents 330c13c + d411e24 commit fd08d7c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/client/test_client_network.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ def test_configure_as_leader(client):
4444
"""Test configuring the current instance as a Leader with one follower."""
4545
body = {
4646
"remotes": {
47-
REMOTE_MS_1: {"url": "http://localhost:7701", "searchApiKey": "remoteSearchKey"}
47+
REMOTE_MS_1: {
48+
"url": "http://localhost:7701",
49+
"searchApiKey": "remoteSearchKey",
50+
}
4851
},
4952
"leader": None,
5053
}
5154
response = client.add_or_update_networks(body)
55+
56+
assert isinstance(response, dict)
5257
assert REMOTE_MS_1 in response["remotes"]
58+
assert response.get("leader") is None
59+
60+
reset_network_config(client)

0 commit comments

Comments
 (0)