Clean up mock_coro (#6037)
This commit is contained in:
1 parent
9c176ad85a
commit
75e41a21c9
12 files changed
+37
-42
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user