1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Use reference strings for openweathermap (#41055)

This commit is contained in:
Jenny
2020-10-03 13:11:03 +01:00
committed by GitHub
parent 4c00ff98ea
commit 8b30b6b312
3 changed files with 10 additions and 10 deletions

View File

@@ -166,7 +166,7 @@ async def test_form_invalid_api_key(hass):
DOMAIN, context={"source": SOURCE_USER}, data=CONFIG
)
assert result["errors"] == {"base": "auth"}
assert result["errors"] == {"base": "invalid_api_key"}
async def test_form_api_call_error(hass):
@@ -182,7 +182,7 @@ async def test_form_api_call_error(hass):
DOMAIN, context={"source": SOURCE_USER}, data=CONFIG
)
assert result["errors"] == {"base": "connection"}
assert result["errors"] == {"base": "cannot_connect"}
async def test_form_api_offline(hass):
@@ -197,7 +197,7 @@ async def test_form_api_offline(hass):
DOMAIN, context={"source": SOURCE_USER}, data=CONFIG
)
assert result["errors"] == {"base": "auth"}
assert result["errors"] == {"base": "invalid_api_key"}
def _create_mocked_owm(is_api_online: bool):