1
mirror of https://github.com/home-assistant/supervisor synced 2024-08-05 03:49:58 +02:00
ha-supervisor/tests/discovery/test_matter.py
2022-11-15 15:07:56 +01:00

23 lines
466 B
Python

"""Test Matter Server discovery."""
import pytest
import voluptuous as vol
from supervisor.discovery.validate import valid_discovery_config
def test_good_config():
"""Test good Matter Server config."""
valid_discovery_config(
"matter",
{"host": "test", "port": 3812},
)
def test_bad_config():
"""Test bad Matter Server config."""
with pytest.raises(vol.Invalid):
valid_discovery_config("matter", {"host": "test"})