Avoid network activity during Plex tests (#72499)

This commit is contained in:
jjlawren 2022-05-27 02:46:22 -05:00 committed by GitHub
parent 01b5f98414
commit 9cd9d06bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -193,6 +193,8 @@ async def test_single_available_server(
)
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(
hass,
@ -249,6 +251,8 @@ async def test_multiple_servers_with_selection(
)
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(
hass,
@ -305,6 +309,8 @@ async def test_adding_last_unconfigured_server(
)
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(
hass,

View File

@ -184,6 +184,7 @@ async def test_setup_when_certificate_changed(
plextv_account,
plextv_resources,
plextv_shared_users,
mock_websocket,
):
"""Test setup component when the Plex certificate has changed."""