Make sure we test latin-1 encoding in test

This commit is contained in:
Paulus Schoutsen
2026-08-24 08:52:21 +02:00
parent fc7ba2abc7
commit 28badf6942
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ TEST_CONFIG = {
"auth_test": {
"url": TEST_URL,
"method": "get",
"username": "test",
"username": "tøst",
"password": "123456",
},
}
+1 -1
View File
@@ -125,7 +125,7 @@ async def test_rest_command_auth(
assert len(aioclient_mock.mock_calls) == 1
_method, _url, _data, headers = aioclient_mock.mock_calls[0]
encoded = base64.b64encode(b"test:123456").decode()
encoded = base64.b64encode("tøst:123456".encode("latin-1")).decode()
assert CIMultiDict(headers).getall("Authorization") == [f"Basic {encoded}"]