Skip to main content

pytest plugin for aiohttp support

Project description


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


0.1.1 (2016-07-22)

  • Fix an url in

0.1.0 (2016-07-22)

  • Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-aiohttp, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_aiohttp-0.1.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pytest-aiohttp-0.1.1.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page