Skip to content

Commit 031b705

Browse files
committed
Codestyle fixes
1 parent d9ad720 commit 031b705

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/test_asyncio/test_multidb/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async def test_execute_command_auto_fallback_to_highest_weight_db(
202202
True,
203203
True,
204204
True,
205-
True
205+
True,
206206
]
207207

208208
with (
@@ -213,9 +213,9 @@ async def test_execute_command_auto_fallback_to_highest_weight_db(
213213
return_value=[mock_hc],
214214
),
215215
):
216-
mock_db.client.execute_command.return_value = 'OK'
217-
mock_db1.client.execute_command.return_value = 'OK1'
218-
mock_db2.client.execute_command.return_value = 'OK2'
216+
mock_db.client.execute_command.return_value = "OK"
217+
mock_db1.client.execute_command.return_value = "OK1"
218+
mock_db2.client.execute_command.return_value = "OK2"
219219
mock_multi_db_config.health_check_interval = 0.1
220220
mock_multi_db_config.auto_fallback_interval = 0.2
221221
mock_multi_db_config.failover_strategy = WeightBasedFailoverStrategy()

tests/test_multidb/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_execute_command_auto_fallback_to_highest_weight_db(
198198
True,
199199
True,
200200
True,
201-
True
201+
True,
202202
]
203203

204204
with (
@@ -209,9 +209,9 @@ def test_execute_command_auto_fallback_to_highest_weight_db(
209209
return_value=[mock_hc],
210210
),
211211
):
212-
mock_db.client.execute_command.return_value = 'OK'
213-
mock_db1.client.execute_command.return_value = 'OK1'
214-
mock_db2.client.execute_command.return_value = 'OK2'
212+
mock_db.client.execute_command.return_value = "OK"
213+
mock_db1.client.execute_command.return_value = "OK1"
214+
mock_db2.client.execute_command.return_value = "OK2"
215215
mock_multi_db_config.health_check_interval = 0.1
216216
mock_multi_db_config.auto_fallback_interval = 0.2
217217
mock_multi_db_config.failover_strategy = WeightBasedFailoverStrategy()

0 commit comments

Comments
 (0)