Fix slow aestransport and cli tests (#816)

This commit is contained in:
Steven B
2024-03-11 10:17:12 +00:00
committed by GitHub
parent 3495bd83df
commit 7507837734
5 changed files with 16 additions and 10 deletions

View File

@@ -135,6 +135,7 @@ async def test_login_errors(mocker, inner_error_codes, expectation, call_count):
transport._state = TransportState.LOGIN_REQUIRED
transport._session_expire_at = time.time() + 86400
transport._encryption_session = mock_aes_device.encryption_session
mocker.patch.object(transport, "BACKOFF_SECONDS_AFTER_LOGIN_ERROR", 0)
assert transport._token_url is None