1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Clean up mock_coro (#6037)

This commit is contained in:
Paulus Schoutsen
2017-02-15 23:19:34 -08:00
committed by GitHub
parent 9c176ad85a
commit 75e41a21c9
12 changed files with 37 additions and 42 deletions

View File

@@ -20,7 +20,7 @@ def test_validate_config_ok(hass, test_client):
with patch(
'homeassistant.components.config.core.async_check_ha_config_file',
return_value=mock_coro(None)()):
return_value=mock_coro()):
resp = yield from client.post('/api/config/core/check_config')
assert resp.status == 200
@@ -30,7 +30,7 @@ def test_validate_config_ok(hass, test_client):
with patch(
'homeassistant.components.config.core.async_check_ha_config_file',
return_value=mock_coro('beer')()):
return_value=mock_coro('beer')):
resp = yield from client.post('/api/config/core/check_config')
assert resp.status == 200