Fix malformed response in Bang & Olufsen testing (#125658)

Fix malformed SoftwareUpdateStatus object
This commit is contained in:
Markus Jacobsen 2024-09-10 15:36:25 +02:00 committed by GitHub
parent afeab659e1
commit 3ea4c3b8bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,7 @@ from mozart_api.models import (
ProductState,
RemoteMenuItem,
RenderingState,
SoftwareUpdateState,
SoftwareUpdateStatus,
Source,
SourceArray,
@ -79,7 +80,7 @@ def mock_mozart_client() -> Generator[AsyncMock]:
)
client.get_softwareupdate_status = AsyncMock()
client.get_softwareupdate_status.return_value = SoftwareUpdateStatus(
software_version="1.0.0", state=""
software_version="1.0.0", state=SoftwareUpdateState()
)
client.get_product_state = AsyncMock()
client.get_product_state.return_value = ProductState(