Add web UI notification for under voltage/throttling events (#1203)

This commit is contained in:
Benjamin Krein
2023-09-01 02:23:12 -04:00
committed by GitHub
parent 3b6822d7c8
commit b32027f8c0
13 changed files with 207 additions and 2 deletions
+9
View File
@@ -286,3 +286,12 @@ def test_rename_system(env, http_client):
response_data = response.json()
assert response_data["data"]["system_name"] == old_name
def test_throttle_notification(http_client):
response = http_client.get("/")
response_data = response.json()
assert response.status_code == 200
assert response_data["status"] == STATUS_SUCCESS
assert "Under voltage detected" in response_data["data"]