mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 06:28:31 +00:00
Ensure internal/external URL have no path (#54304)
* Ensure internal/external URL have no path * Fix comment typo Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -215,6 +215,19 @@ def test_core_config_schema():
|
||||
)
|
||||
|
||||
|
||||
def test_core_config_schema_internal_external_warning(caplog):
|
||||
"""Test that we warn for internal/external URL with path."""
|
||||
config_util.CORE_CONFIG_SCHEMA(
|
||||
{
|
||||
"external_url": "https://www.example.com/bla",
|
||||
"internal_url": "http://example.local/yo",
|
||||
}
|
||||
)
|
||||
|
||||
assert "Invalid external_url set" in caplog.text
|
||||
assert "Invalid internal_url set" in caplog.text
|
||||
|
||||
|
||||
def test_customize_dict_schema():
|
||||
"""Test basic customize config validation."""
|
||||
values = ({ATTR_FRIENDLY_NAME: None}, {ATTR_ASSUMED_STATE: "2"})
|
||||
|
||||
Reference in New Issue
Block a user