Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

History Node

0.0.1a0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytest_aiohttp-0.1.3-py3-none-any.whl (3.7 kB) Copy SHA256 Checksum SHA256 py3 Wheel Sep 8, 2016
pytest-aiohttp-0.1.3.tar.gz (6.2 kB) Copy SHA256 Checksum SHA256 Source Sep 8, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting