Skip to content

Commit 6dd2e0b

Browse files
committed
test(client_manager): fix formatting for async test definition
- Adjust formatting of `test_inter_frame_wait_enforces_min_interval_for_reads_and_writes` to follow consistent inline parameter style. - Improve readability and maintain uniform formatting across test definitions.
1 parent 771a5d7 commit 6dd2e0b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/test_client_manager.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ async def test_inter_frame_wait_updates_shared_timestamp(self, mock_client_cls):
9494
@patch("custom_components.solis_modbus.client_manager.AsyncModbusTcpClient")
9595
@patch("custom_components.solis_modbus.client_manager.time.perf_counter")
9696
@patch("custom_components.solis_modbus.client_manager.asyncio.sleep", new_callable=AsyncMock)
97-
async def test_inter_frame_wait_enforces_min_interval_for_reads_and_writes(
98-
self, mock_sleep, mock_perf_counter, mock_client_cls
99-
):
97+
async def test_inter_frame_wait_enforces_min_interval_for_reads_and_writes(self, mock_sleep, mock_perf_counter, mock_client_cls):
10098
mock_client_cls.return_value = MagicMock()
10199
# Two operations back-to-back on the same connection: each should independently
102100
# compute a wait based on MIN_INTER_FRAME_MS, regardless of is_write.

0 commit comments

Comments
 (0)