Metadata-Version: 2.0
Name: pytest-aiohttp
Version: 0.1.0
Summary: pytest plugin for aiohttp support
Home-page: https://github.com/aio-libs/multidict/
Author: Andrew Svetlov
Author-email: andrew.svetlov@gmail.com
License: Apache 2
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Testing
Classifier: Framework :: Pytest
Requires-Dist: aiohttp (>=0.22.0)
Requires-Dist: pytest

pytest-aiohttp
==============

pytest plugin for aiohttp support

The library allows to use [aiohttp pytest
pugin](http://aiohttp.readthedocs.io/en/stable/testing.html#pytest-example)
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.0 (2016-07-22)
------------------

- Initial release

