mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix flapping demo geo_location test (#37516)
This commit is contained in:
parent
b56f4bd9f8
commit
f0dda4f875
@ -1,6 +1,8 @@
|
|||||||
"""The tests for the demo platform."""
|
"""The tests for the demo platform."""
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components import geo_location
|
from homeassistant.components import geo_location
|
||||||
from homeassistant.components.demo.geo_location import (
|
from homeassistant.components.demo.geo_location import (
|
||||||
DEFAULT_UPDATE_INTERVAL,
|
DEFAULT_UPDATE_INTERVAL,
|
||||||
@ -20,6 +22,12 @@ from tests.common import (
|
|||||||
CONFIG = {geo_location.DOMAIN: [{"platform": "demo"}]}
|
CONFIG = {geo_location.DOMAIN: [{"platform": "demo"}]}
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def mock_legacy_time(legacy_patchable_time):
|
||||||
|
"""Make time patchable for all the tests."""
|
||||||
|
yield
|
||||||
|
|
||||||
|
|
||||||
class TestDemoPlatform(unittest.TestCase):
|
class TestDemoPlatform(unittest.TestCase):
|
||||||
"""Test the demo platform."""
|
"""Test the demo platform."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user