mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fix tests (#7659)
* Remove global hass * Http.auth test no longer spin up server * Remove server usage from http.ban test * Remove setupModule from test device_sun_light_trigger * Update common.py
This commit is contained in:
@@ -8,10 +8,10 @@ from homeassistant.setup import async_setup_component
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_http_client(loop, hass, test_client):
|
||||
def mock_http_client(hass, test_client):
|
||||
"""Start the Hass HTTP component."""
|
||||
loop.run_until_complete(async_setup_component(hass, 'frontend', {}))
|
||||
return loop.run_until_complete(test_client(hass.http.app))
|
||||
hass.loop.run_until_complete(async_setup_component(hass, 'frontend', {}))
|
||||
return hass.loop.run_until_complete(test_client(hass.http.app))
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in New Issue
Block a user