pytest plugin for aiohttp support
Project description
pytest-aiohttp
pytest plugin for aiohttp support
The library allows to use aiohttp pytest pugin without need for implicitly loading it like pytest_plugins = ‘aiohttp.pytest_plugin’.
Just run:
$ pip install pytest-aiohttp
and write tests with the plugin support:
from aiohttp import web async def hello(request): return web.Response(body=b'Hello, world') def create_app(loop): app = web.Application(loop=loop) app.router.add_route('GET', '/', hello) return app async def test_hello(test_client): client = await test_client(create_app) resp = await client.get('/') assert resp.status == 200 text = await resp.text() assert 'Hello, world' in text
CHANGES
0.1.3 (2016-09-08)
Add MANIFEST.in file
0.1.2 (2016-08-07)
Fix README markup
0.1.1 (2016-07-22)
Fix an url in setup.py
0.1.0 (2016-07-22)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-aiohttp-0.1.3.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file pytest-aiohttp-0.1.3.tar.gz
.
File metadata
- Download URL: pytest-aiohttp-0.1.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2391c424b5342f9234f5f56f15183d167050b50c08c96258c1816cdb5a0283f |
|
MD5 | f27bfc0aa0e28abd93b487083404fbaa |
|
BLAKE2b-256 | 89b1a486d9e969de578c373bb48ca907cbfa337653dd9fb8b8f61143053399b3 |
File details
Details for the file pytest_aiohttp-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pytest_aiohttp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ed6c5f40600cea0a2864ff9bcc92c36aaa8b4564f08007d448e07b05ab46437 |
|
MD5 | e719690447b635c1aaed9d338eb37c2b |
|
BLAKE2b-256 | 0eb5a8465847517f005679d8f3c22b15588ca6339abe35d492af813a800a8e85 |