Skip to content

Commit

Permalink
remove user errors
Browse files Browse the repository at this point in the history
  • Loading branch information
escoand committed Nov 4, 2019
1 parent b7604a9 commit ac536b7
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/components/samsungtv/test_config_flow.py
Expand Up @@ -73,27 +73,6 @@ async def test_user(hass, remote):
assert result["data"][CONF_ID] is None


async def test_user_error(hass, remote):
"""Test starting a flow by user with errors."""

# both input fields missing
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": "user"}, data={}
)
assert result["type"] == "form"
assert len(result["errors"]) == 2
assert result["errors"][CONF_HOST] is not None
assert result["errors"][CONF_NAME] is not None

# CONF_NAME input field missing
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": "user"}, data={CONF_HOST: "test"}
)
assert result["type"] == "form"
assert len(result["errors"]) == 1
assert result["errors"][CONF_NAME] is not None


async def test_user_missing_auth(hass):
"""Test starting a flow by user with authentication."""
with patch(
Expand Down

0 comments on commit ac536b7

Please sign in to comment.