Bump pyloadapi to v1.2.0 (#120218)

This commit is contained in:
Mr. Bubbles 2024-06-23 04:22:13 +02:00 committed by GitHub
parent bc45dcbad3
commit f0d5640f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 10 deletions

View file

@ -47,7 +47,7 @@ def mock_pyloadapi() -> Generator[AsyncMock, None, None]:
):
client = mock_client.return_value
client.username = "username"
client.login.return_value = LoginResponse.from_dict(
client.login.return_value = LoginResponse(
{
"_permanent": True,
"authenticated": True,
@ -59,7 +59,8 @@ def mock_pyloadapi() -> Generator[AsyncMock, None, None]:
"_flashes": [["message", "Logged in successfully"]],
}
)
client.get_status.return_value = StatusServerResponse.from_dict(
client.get_status.return_value = StatusServerResponse(
{
"pause": False,
"active": 1,
@ -71,5 +72,6 @@ def mock_pyloadapi() -> Generator[AsyncMock, None, None]:
"captcha": False,
}
)
client.free_space.return_value = 99999999999
yield client