Split long string in DuneHD test (#49900)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Maciej Bieniek 2021-04-30 15:30:21 +02:00 committed by GitHub
parent 98b305285f
commit 37dad92bf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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