Skip to content
Snippets Groups Projects
Unverified Commit f0dda4f8 authored by J. Nick Koston's avatar J. Nick Koston Committed by GitHub
Browse files

Fix flapping demo geo_location test (#37516)

parent b56f4bd9
No related branches found
No related tags found
No related merge requests found
"""The tests for the demo platform."""
import unittest
import pytest
from homeassistant.components import geo_location
from homeassistant.components.demo.geo_location import (
DEFAULT_UPDATE_INTERVAL,
......@@ -20,6 +22,12 @@ from tests.common import (
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):
"""Test the demo platform."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment