File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66from datetime import datetime
77from email .utils import formatdate
88from time import mktime
9- from unittest .mock import patch , MagicMock , Mock
9+ from unittest .mock import patch , MagicMock
1010
1111import ld_eventsource .actions
1212
@@ -319,7 +319,9 @@ def test_error_within_backoff_uses_remaining_time(
319319
320320 # Simulate reconnect completing and updating timestamp
321321 config_manager ._sse_reconnecting = False
322- config_manager ._last_reconnect_attempt_time = 1005.0 # Simulates reconnect at t=1005
322+ config_manager ._last_reconnect_attempt_time = (
323+ 1005.0 # Simulates reconnect at t=1005
324+ )
323325
324326 # Second error at t=1008 (3s after reconnect, within 10s backoff)
325327 mock_time .return_value = 1008.0
@@ -390,6 +392,5 @@ def test_successful_state_resets_reconnection_flags(
390392 config_manager .close ()
391393
392394
393-
394395if __name__ == "__main__" :
395396 unittest .main ()
You can’t perform that action at this time.
0 commit comments