Update aiohttp to 2.3.1 (#10139)

* Update aiohttp to 2.3.1

* set timeout 10sec

* fix freeze with new middleware handling

* Convert middleware auth

* Convert mittleware ipban

* convert middleware static

* fix lint

* Update ban.py

* Update auth.py

* fix lint

* Fix tests
This commit is contained in:
Pascal Vizeli 2017-11-06 03:42:31 +01:00 committed by Paulus Schoutsen
parent 39de557c4c
commit a9a3e24bde
8 changed files with 67 additions and 92 deletions

View file

@ -143,22 +143,10 @@ def test_registering_view_while_running(hass, test_client):
}
)
yield from setup.async_setup_component(hass, 'api')
yield from hass.async_start()
yield from hass.async_block_till_done()
# This raises a RuntimeError if app is frozen
hass.http.register_view(TestView)
client = yield from test_client(hass.http.app)
resp = yield from client.get('/hello')
assert resp.status == 200
text = yield from resp.text()
assert text == 'hello'
@asyncio.coroutine
def test_api_base_url_with_domain(hass):