forked from aio-libs/aiohttp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRAFT, New TestClientApp implementation
A test client imlementation bound to an App to be used skipping the network layer. Rather than use the `make_mocked_request`, it tries to keep the client instance as much as we can tied to the app with its characteristics, perhaps routing. This new aproximation is formulated to be used for testing keeping the interface quite close to that one used by the AioHttp client, tryig to make the life easier to the developer. ```python client = app.test_client() response = yield from client.get("/") assert (yield from response.text()) == "Hello, world" ```
- Loading branch information
Showing
3 changed files
with
179 additions
and
0 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 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