Attempt to fix CI (#34800)
This commit is contained in:
1 parent
c29c0e7e13
commit
454c5d824a
10 files changed
+224
-244
No files matched your search
@@ -2,6 +2,7 @@
|
||||
import copy
|
||||
|
||||
from asynctest import ClockedTestCase, patch
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.media_player import DOMAIN as MP_DOMAIN
|
||||
from homeassistant.components.plex.const import (
|
||||
@@ -17,7 +18,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
from .const import DEFAULT_DATA, DEFAULT_OPTIONS
|
||||
from .mock_classes import MockPlexServer
|
||||
|
||||
from tests.common import MockConfigEntry, async_test_home_assistant, mock_storage
|
||||
from tests.common import MockConfigEntry, async_test_home_assistant
|
||||
|
||||
|
||||
async def test_new_users_available(hass):
|
||||
@@ -107,19 +108,17 @@ async def test_new_ignored_users_available(hass, caplog):
|
||||
assert sensor.state == str(len(mock_plex_server.accounts))
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
class TestClockedPlex(ClockedTestCase):
|
||||
"""Create clock-controlled asynctest class."""
|
||||
|
||||
async def setUp(self):
|
||||
"""Initialize this test class."""
|
||||
self.hass = await async_test_home_assistant(self.loop)
|
||||
self.mock_storage = mock_storage()
|
||||
self.mock_storage.__enter__()
|
||||
|
||||
async def tearDown(self):
|
||||
"""Clean up the HomeAssistant instance."""
|
||||
await self.hass.async_stop()
|
||||
self.mock_storage.__exit__(None, None, None)
|
||||
|
||||
async def test_mark_sessions_idle(self):
|
||||
"""Test marking media_players as idle when sessions end."""
|
||||
|
||||
Reference in new issue
Block a user