Clean up mock_coro (#6037)

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

No files matched your search

+2 -2
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