Skip to content

Commit 629fe6f

Browse files
committed
Update formatting
1 parent cb5d979 commit 629fe6f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_authentication.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"user": {"_id": "1234567", "email": "user@elmax-cloud.test", "role": "user"},
1414
}
1515

16+
1617
@pytest.mark.asyncio
1718
async def test_authentication_valid(httpx_mock: HTTPXMock):
1819
"""Test a valid authentication process."""
@@ -32,8 +33,8 @@ async def test_authentication_not_json(httpx_mock: HTTPXMock):
3233
with pytest.raises(exceptions.ElmaxConnectionError) as execinfo:
3334
client = Elmax(username="username", password="password")
3435
await client.connect()
35-
36-
assert execinfo.value.args[0] == 'Credentials are not valid'
36+
37+
assert execinfo.value.args[0] == "Credentials are not valid"
3738
assert client.is_authenticated is False
3839

3940

@@ -45,6 +46,6 @@ async def test_authentication_incomplete(httpx_mock: HTTPXMock):
4546
with pytest.raises(exceptions.ElmaxConnectionError) as execinfo:
4647
client = Elmax(username="username", password="password")
4748
await client.connect()
48-
49-
assert execinfo.value.args[0] == 'Credentials are not valid'
49+
50+
assert execinfo.value.args[0] == "Credentials are not valid"
5051
assert client.is_authenticated is False

0 commit comments

Comments
 (0)