Improve error messages in Habitica (#129948)

Improve error messages
This commit is contained in:
Manu
2024-11-06 13:23:43 +01:00
committed by GitHub
parent 2c1db10986
commit 27e81fe0ed
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -207,7 +207,7 @@ async def test_button_press(
[
(
HTTPStatus.TOO_MANY_REQUESTS,
"Currently rate limited",
"Rate limit exceeded, try again later",
ServiceValidationError,
),
(
@@ -217,7 +217,7 @@ async def test_button_press(
),
(
HTTPStatus.UNAUTHORIZED,
"Unable to carry out this action",
"Unable to complete action, the required conditions are not met",
ServiceValidationError,
),
],
+1 -1
View File
@@ -165,4 +165,4 @@ async def test_coordinator_rate_limited(
async_fire_time_changed(hass)
await hass.async_block_till_done()
assert "Currently rate limited, skipping update" in caplog.text
assert "Rate limit exceeded, will try again later" in caplog.text