Fix unpatched timeout in gree config flow tests (#59449)

pull/59681/head
Robert Hillis 2021-11-14 10:57:50 -05:00 committed by GitHub
parent ed6c70a026
commit ee07e9b379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from homeassistant.components.gree.const import DOMAIN as GREE_DOMAIN
from .common import FakeDiscovery
@patch("homeassistant.components.gree.config_flow.DISCOVERY_TIMEOUT", 0)
async def test_creating_entry_sets_up_climate(hass):
"""Test setting up Gree creates the climate components."""
with patch(
@ -32,6 +33,7 @@ async def test_creating_entry_sets_up_climate(hass):
assert len(setup.mock_calls) == 1
@patch("homeassistant.components.gree.config_flow.DISCOVERY_TIMEOUT", 0)
async def test_creating_entry_has_no_devices(hass):
"""Test setting up Gree creates the climate components."""
with patch(