mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-03-02 15:07:30 +00:00
* Add known first party to isort configuration * Run isort on supervisor and tests folder
20 lines
427 B
Python
20 lines
427 B
Python
"""Test adguard discovery."""
|
|
|
|
import pytest
|
|
import voluptuous as vol
|
|
|
|
from supervisor.discovery.validate import valid_discovery_config
|
|
|
|
|
|
def test_good_config():
|
|
"""Test good deconz config."""
|
|
|
|
valid_discovery_config("adguard", {"host": "test", "port": 3812})
|
|
|
|
|
|
def test_bad_config():
|
|
"""Test good adguard config."""
|
|
|
|
with pytest.raises(vol.Invalid):
|
|
valid_discovery_config("adguard", {"host": "test"})
|