mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16:29 +00:00
Fix copy/paste issues in tests (#3393)
This commit is contained in:
parent
d994170a9d
commit
fefc99e825
@ -7,13 +7,13 @@ from supervisor.discovery.validate import valid_discovery_config
|
|||||||
|
|
||||||
|
|
||||||
def test_good_config():
|
def test_good_config():
|
||||||
"""Test good deconz config."""
|
"""Test good adguard config."""
|
||||||
|
|
||||||
valid_discovery_config("adguard", {"host": "test", "port": 3812})
|
valid_discovery_config("adguard", {"host": "test", "port": 3812})
|
||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good adguard config."""
|
"""Test bad adguard config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("adguard", {"host": "test"})
|
valid_discovery_config("adguard", {"host": "test"})
|
||||||
|
@ -7,13 +7,13 @@ from supervisor.discovery.validate import valid_discovery_config
|
|||||||
|
|
||||||
|
|
||||||
def test_good_config():
|
def test_good_config():
|
||||||
"""Test good deconz config."""
|
"""Test good almond config."""
|
||||||
|
|
||||||
valid_discovery_config("almond", {"host": "test", "port": 3812})
|
valid_discovery_config("almond", {"host": "test", "port": 3812})
|
||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good adguard config."""
|
"""Test bad almond config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("almond", {"host": "test"})
|
valid_discovery_config("almond", {"host": "test"})
|
||||||
|
@ -16,7 +16,7 @@ def test_good_config():
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good deconz config."""
|
"""Test bad deconz config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("deconz", {"host": "test", "port": 8080})
|
valid_discovery_config("deconz", {"host": "test", "port": 8080})
|
||||||
|
@ -16,7 +16,7 @@ def test_good_config():
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good homematic config."""
|
"""Test bad homematic config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("homematic", {"test": {"bla": "test", "port": 8080}})
|
valid_discovery_config("homematic", {"test": {"bla": "test", "port": 8080}})
|
||||||
|
@ -12,6 +12,6 @@ def test_good_config() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config() -> None:
|
def test_bad_config() -> None:
|
||||||
"""Test good motionEye config."""
|
"""Test bad motionEye config."""
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("motioneye", {})
|
valid_discovery_config("motioneye", {})
|
||||||
|
@ -15,7 +15,7 @@ def test_good_config():
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good mqtt config."""
|
"""Test bad mqtt config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("mqtt", {"host": "test", "username": "bla", "ssl": True})
|
valid_discovery_config("mqtt", {"host": "test", "username": "bla", "ssl": True})
|
||||||
|
@ -16,7 +16,7 @@ def test_good_config():
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good zwave mqtt config."""
|
"""Test bad zwave mqtt config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("ozw", {"host": "test", "username": "bla", "ssl": True})
|
valid_discovery_config("ozw", {"host": "test", "username": "bla", "ssl": True})
|
||||||
|
@ -13,7 +13,7 @@ def test_good_config():
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good unifi config."""
|
"""Test bad unifi config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("unifi", {"host": "test"})
|
valid_discovery_config("unifi", {"host": "test"})
|
||||||
|
@ -16,7 +16,7 @@ def test_good_config():
|
|||||||
|
|
||||||
|
|
||||||
def test_bad_config():
|
def test_bad_config():
|
||||||
"""Test good zwave js config."""
|
"""Test bad zwave js config."""
|
||||||
|
|
||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
valid_discovery_config("zwave_js", {"host": "test"})
|
valid_discovery_config("zwave_js", {"host": "test"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user