mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Split long string in DuneHD test (#49900)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
98b305285f
commit
37dad92bf7
@ -66,7 +66,12 @@ async def test_user_invalid_host(hass):
|
|||||||
|
|
||||||
async def test_user_very_long_host(hass):
|
async def test_user_very_long_host(hass):
|
||||||
"""Test that errors are shown when the host is longer than 253 chars."""
|
"""Test that errors are shown when the host is longer than 253 chars."""
|
||||||
long_host = "very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host"
|
long_host = (
|
||||||
|
"very_long_host_very_long_host_very_long_host_very_long_host_very_long"
|
||||||
|
"host_very_long_host_very_long_host_very_long_host_very_long_host_very_long_ho"
|
||||||
|
"st_very_long_host_very_long_host_very_long_host_very_long_host_very_long_host_"
|
||||||
|
"very_long_host_very_long_host"
|
||||||
|
)
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
DOMAIN, context={"source": SOURCE_USER}, data={CONF_HOST: long_host}
|
DOMAIN, context={"source": SOURCE_USER}, data={CONF_HOST: long_host}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user