Fix event test (#42078)
This commit is contained in:
1 parent
16c402f583
commit
8d4675713a
2 files changed
+47
-6
No files matched your search
@@ -1,9 +1,20 @@
|
||||
"""The tests for time_date sensor platform."""
|
||||
import pytest
|
||||
|
||||
import homeassistant.components.time_date.sensor as time_date
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from tests.async_mock import patch
|
||||
|
||||
ORIG_TZ = dt_util.DEFAULT_TIME_ZONE
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def restore_ts():
|
||||
"""Restore default TZ."""
|
||||
yield
|
||||
dt_util.DEFAULT_TIME_ZONE = ORIG_TZ
|
||||
|
||||
|
||||
# pylint: disable=protected-access
|
||||
async def test_intervals(hass):
|
||||
|
||||
Reference in new issue
Block a user