From f3039f96ec5bbcc088534c069f1c77d6e021a3db Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" <nick@koston.org> Date: Thu, 2 Jul 2020 13:45:57 -0500 Subject: [PATCH] Fix flapping gdacs tests (#37363) --- tests/components/gdacs/test_geo_location.py | 4 ++-- tests/components/gdacs/test_sensor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/components/gdacs/test_geo_location.py b/tests/components/gdacs/test_geo_location.py index ccffd77a658..4185a7f656e 100644 --- a/tests/components/gdacs/test_geo_location.py +++ b/tests/components/gdacs/test_geo_location.py @@ -40,7 +40,7 @@ from tests.components.gdacs import _generate_mock_feed_entry CONFIG = {gdacs.DOMAIN: {CONF_RADIUS: 200}} -async def test_setup(hass): +async def test_setup(hass, legacy_patchable_time): """Test the general setup of the integration.""" # Set up some mock feed entries for this test. mock_entry_1 = _generate_mock_feed_entry( @@ -191,7 +191,7 @@ async def test_setup(hass): assert len(entity_registry.entities) == 1 -async def test_setup_imperial(hass): +async def test_setup_imperial(hass, legacy_patchable_time): """Test the setup of the integration using imperial unit system.""" hass.config.units = IMPERIAL_SYSTEM # Set up some mock feed entries for this test. diff --git a/tests/components/gdacs/test_sensor.py b/tests/components/gdacs/test_sensor.py index aa8c2a43428..9be6742deed 100644 --- a/tests/components/gdacs/test_sensor.py +++ b/tests/components/gdacs/test_sensor.py @@ -25,7 +25,7 @@ from tests.components.gdacs import _generate_mock_feed_entry CONFIG = {gdacs.DOMAIN: {CONF_RADIUS: 200}} -async def test_setup(hass): +async def test_setup(hass, legacy_patchable_time): """Test the general setup of the integration.""" # Set up some mock feed entries for this test. mock_entry_1 = _generate_mock_feed_entry( -- GitLab