Use reference strings for openweathermap (#41055)

This commit is contained in:
Jenny authored and GitHub committed 2020-10-03 14:11:03 +02:00
1 parent 4c00ff98ea
commit 8b30b6b312
3 files changed
+10 -10

No files matched your search

@@ -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):