Enable RUF059 and fix violations (#152071)

This commit is contained in:
Joost Lekkerkerker
2025-09-10 21:16:09 +02:00
committed by GitHub
parent 46c38f185c
commit e3c0cfd1e2
46 changed files with 125 additions and 122 deletions

View File

@@ -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