Skip to content

Commit a3a0632

Browse files
committed
Add pytest
1 parent 099ee69 commit a3a0632

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_root.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ async def test_available_updates(
8888
assert updates[1].update_type == UpdateType.OS
8989

9090

91+
async def test_reload_updates(
92+
responses: aioresponses, supervisor_client: SupervisorClient
93+
) -> None:
94+
"""Test reload updates API."""
95+
responses.post(f"{SUPERVISOR_URL}/reload_updates", status=200)
96+
assert await supervisor_client.reload_updates() is None
97+
assert responses.requests.keys() == {
98+
("POST", URL(f"{SUPERVISOR_URL}/reload_updates"))
99+
}
100+
101+
91102
async def test_refresh_updates(
92103
responses: aioresponses, supervisor_client: SupervisorClient
93104
) -> None:

0 commit comments

Comments
 (0)