mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-20 18:38:59 +00:00
It seems that the codebase is not formatted with the latest ruff version. This PR reformats the codebase with ruff 0.5.7.
11 lines
362 B
Python
11 lines
362 B
Python
"""Test supervisor.utils.sanitize_url."""
|
|
|
|
from supervisor.misc.filter import sanitize_url
|
|
|
|
|
|
def test_sanitize_url():
|
|
"""Test supervisor.utils.sanitize_url."""
|
|
assert sanitize_url("test") == "test"
|
|
assert sanitize_url("http://my.duckdns.org") == "http://example.com"
|
|
assert sanitize_url("http://my.duckdns.org/test") == "http://example.com/test"
|