mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Avoid network activity during Plex tests (#72499)
This commit is contained in:
parent
01b5f98414
commit
9cd9d06bcc
@ -193,6 +193,8 @@ async def test_single_available_server(
|
|||||||
)
|
)
|
||||||
assert result["data"][PLEX_SERVER_CONFIG][CONF_TOKEN] == MOCK_TOKEN
|
assert result["data"][PLEX_SERVER_CONFIG][CONF_TOKEN] == MOCK_TOKEN
|
||||||
|
|
||||||
|
await hass.config_entries.async_unload(result["result"].entry_id)
|
||||||
|
|
||||||
|
|
||||||
async def test_multiple_servers_with_selection(
|
async def test_multiple_servers_with_selection(
|
||||||
hass,
|
hass,
|
||||||
@ -249,6 +251,8 @@ async def test_multiple_servers_with_selection(
|
|||||||
)
|
)
|
||||||
assert result["data"][PLEX_SERVER_CONFIG][CONF_TOKEN] == MOCK_TOKEN
|
assert result["data"][PLEX_SERVER_CONFIG][CONF_TOKEN] == MOCK_TOKEN
|
||||||
|
|
||||||
|
await hass.config_entries.async_unload(result["result"].entry_id)
|
||||||
|
|
||||||
|
|
||||||
async def test_adding_last_unconfigured_server(
|
async def test_adding_last_unconfigured_server(
|
||||||
hass,
|
hass,
|
||||||
@ -305,6 +309,8 @@ async def test_adding_last_unconfigured_server(
|
|||||||
)
|
)
|
||||||
assert result["data"][PLEX_SERVER_CONFIG][CONF_TOKEN] == MOCK_TOKEN
|
assert result["data"][PLEX_SERVER_CONFIG][CONF_TOKEN] == MOCK_TOKEN
|
||||||
|
|
||||||
|
await hass.config_entries.async_unload(result["result"].entry_id)
|
||||||
|
|
||||||
|
|
||||||
async def test_all_available_servers_configured(
|
async def test_all_available_servers_configured(
|
||||||
hass,
|
hass,
|
||||||
|
@ -184,6 +184,7 @@ async def test_setup_when_certificate_changed(
|
|||||||
plextv_account,
|
plextv_account,
|
||||||
plextv_resources,
|
plextv_resources,
|
||||||
plextv_shared_users,
|
plextv_shared_users,
|
||||||
|
mock_websocket,
|
||||||
):
|
):
|
||||||
"""Test setup component when the Plex certificate has changed."""
|
"""Test setup component when the Plex certificate has changed."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user