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.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.2.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file pytest-aiohttp-0.1.2.tar.gz
.
File metadata
- Download URL: pytest-aiohttp-0.1.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3acc694481a05026852a3497579c331517e745770afe090249b4dc11eb05b9c9 |
|
MD5 | fb3f02784daed3ae50e3b2f82a1366f9 |
|
BLAKE2b-256 | 4673dd93c3dc4fe543f816521514f7d47d67bd5e41149cf0fe241249f4a8ac7c |
File details
Details for the file pytest_aiohttp-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pytest_aiohttp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceaf6cd2d13f3006ca70cb9163ed1f855d17e09ea72dbf7ea1dbfac954a4ad65 |
|
MD5 | 7475c0da85ecdf87a00f003b462918eb |
|
BLAKE2b-256 | ba0620ea84171596c29643ab9fa588d5d779e3049f5d2de7a755f22e687685f7 |