mirror of
https://github.com/home-assistant/core
synced 2024-10-05 22:37:29 +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):
|
||||
"""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(
|
||||
DOMAIN, context={"source": SOURCE_USER}, data={CONF_HOST: long_host}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue