mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Enable RUF059 and fix violations (#152071)
This commit is contained in:
committed by
GitHub
parent
46c38f185c
commit
e3c0cfd1e2
@@ -71,9 +71,9 @@ async def test_auth(
|
||||
# Verify API requests are made with the correct credentials
|
||||
calls = aioclient_mock.mock_calls
|
||||
assert len(calls) == 2
|
||||
(method, url, data, headers) = calls[0]
|
||||
(_method, _url, _data, headers) = calls[0]
|
||||
assert headers == {"Authorization": f"Bearer {FAKE_TOKEN}"}
|
||||
(method, url, data, headers) = calls[1]
|
||||
(_method, _url, _data, headers) = calls[1]
|
||||
assert headers == {"Authorization": f"Bearer {FAKE_TOKEN}"}
|
||||
|
||||
# Verify the subscriber was created with the correct credentials
|
||||
|
||||
Reference in New Issue
Block a user