Skip to content

Commit

Permalink
Apply Black linter
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Louie <[email protected]>
  • Loading branch information
jonathanl-bq committed Jan 8, 2025
1 parent 833e9aa commit fe096b0
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,9 +857,13 @@ async def test_config_get_set(self, glide_client: TGlideClient):

if not await check_if_server_version_lt(glide_client, "7.0.0"):
previous_timeout = await glide_client.config_get(["timeout"])
previous_node_cluster_timeout = await glide_client.config_get(["node-cluster-timeout"])
previous_node_cluster_timeout = await glide_client.config_get(
["node-cluster-timeout"]
)
assert (
await glide_client.config_set({"timeout": "1000", "node-cluster-timeout": "16000"})
await glide_client.config_set(
{"timeout": "1000", "node-cluster-timeout": "16000"}
)
== OK
)
assert await glide_client.config_get(["timeout", "logfile"]) == {
Expand All @@ -868,16 +872,22 @@ async def test_config_get_set(self, glide_client: TGlideClient):
}
# revert changes to previous timeout
previous_timeout_decoded = convert_bytes_to_string_object(previous_timeout)
previous_node_cluster_timeout_decoded = convert_bytes_to_string_object(pprevious_node_cluster_timeout)
previous_node_cluster_timeout_decoded = convert_bytes_to_string_object(
pprevious_node_cluster_timeout
)
assert isinstance(previous_timeout_decoded, dict)
assert isinstance(previous_node_cluster_timeout_decoded, dict)
assert isinstance(previous_timeout_decoded["timeout"], str)
assert isinstance(previous_node_cluster_timeout_decoded["node-cluster-timeout"], str)
assert isinstance(
previous_node_cluster_timeout_decoded["node-cluster-timeout"], str
)
assert (
await glide_client.config_set(
{
"timeout": previous_timeout_decoded["timeout"],
"node-cluster-timeout": previous_node_cluster_timeout_decoded["node-cluster-timeout"],
"node-cluster-timeout": previous_node_cluster_timeout_decoded[
"node-cluster-timeout"
],
}
)
== OK
Expand Down

0 comments on commit fe096b0

Please sign in to comment.