Remove ThreadPool with async executor (#4154)
* Remove ThreadPool with async executor * Fix zigbee * update unittest * fix remote api * add pending task to remote * fix lint * remove unused import * remove old stuff for lazy tests * fix bug and add a exception handler to executor * change executor handling * change to wait from gather * fix unittest
This commit is contained in:
1 parent
b67f1fed52
commit
ece58ce78f
10 files changed
+37
-346
No files matched your search
@@ -8,7 +8,6 @@ from homeassistant.bootstrap import setup_component
|
||||
@asyncio.coroutine
|
||||
def test_fetching_url(aioclient_mock, hass, test_client):
|
||||
"""Test that it fetches the given url."""
|
||||
hass.allow_pool = True
|
||||
aioclient_mock.get('http://example.com', text='hello world')
|
||||
|
||||
def setup_platform():
|
||||
@@ -40,7 +39,6 @@ def test_fetching_url(aioclient_mock, hass, test_client):
|
||||
@asyncio.coroutine
|
||||
def test_limit_refetch(aioclient_mock, hass, test_client):
|
||||
"""Test that it fetches the given url."""
|
||||
hass.allow_pool = True
|
||||
aioclient_mock.get('http://example.com/5a', text='hello world')
|
||||
aioclient_mock.get('http://example.com/10a', text='hello world')
|
||||
aioclient_mock.get('http://example.com/15a', text='hello planet')
|
||||
|
||||
Reference in new issue
Block a user