1
mirror of https://github.com/home-assistant/supervisor synced 2024-08-05 03:49:58 +02:00
ha-supervisor/tests/discovery/test_vlc_telnet.py
2021-02-16 09:31:07 +01:00

23 lines
512 B
Python

"""Test VLC Telnet discovery."""
import pytest
import voluptuous as vol
from supervisor.discovery.validate import valid_discovery_config
def test_good_config():
"""Test good vlc telnet config."""
valid_discovery_config(
"vlc_telnet",
{"host": "test", "port": 3812, "password": "darksideofthemoon"},
)
def test_bad_config():
"""Test bad vlc telnet config."""
with pytest.raises(vol.Invalid):
valid_discovery_config("vlc_telnet", {"host": "test", "port": 8283})