forked from aio-libs/aiohttp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define
web.Application.on_startup()
handler
Changes: - Define `web.Application.on_startup()` signal handler. - Run `app.on_startup()` along with the request handler within an event loop in `web.run_app()` and in `worker.GunicornWebWorker()`. Problems: - Tests in `test_run_app.py` don't pass because loop is mocked with `wrap` parameter and `loop.create_server()` returns mock. - Tests in `test_worker.py` don't pass on the `master` branch and complain on `pytest.skip()`.
- Loading branch information
Showing
3 changed files
with
21 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.