Metadata-Version: 2.1
Name: pytest-aioresponses
Version: 0.1.0
Summary: py.test integration for aioresponses
Home-page: https://github.com/pheanex/pytest-aioresponses
License: MIT
Keywords: pytest,aioresponses
Author: Konstantin Manna
Author-email: Konstantin@Manna.uno
Requires-Python: >=3.6,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Testing
Requires-Dist: aioresponses (>=0.7.1,<0.8.0)
Requires-Dist: pytest (>=3.5.0)
Requires-Dist: pytest-asyncio (>=0.14.0,<0.15.0)
Project-URL: Repository, https://github.com/pheanex/pytest-aioresponses
Description-Content-Type: text/x-rst

===================
pytest-aioresponses
===================

.. image:: https://img.shields.io/pypi/v/pytest-aioresponses.svg
    :target: https://pypi.org/project/pytest-aioresponses
    :alt: PyPI version

.. image:: https://img.shields.io/pypi/pyversions/pytest-aioresponses.svg
    :target: https://pypi.org/project/pytest-aioresponses
    :alt: Python versions

py.test integration for aioresponses

----

Installation
------------

You can install "pytest-aioresponses" via `pip`_ from `PyPI`_::

    $ pip install pytest-aioresponses


Usage
-----

.. sourcecode:: python


    import aiohttp
    import pytest

    @pytest.mark.asyncio
    async def test_something(aioresponses):
        aioresponses.get("https://hello.aio")

        async with aiohttp.ClientSession() as session:
            async with session.get("https://hello.aio") as response:
                assert response.status == 200

Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the `MIT`_ license, "pytest-aioresponses" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/pheanex/pytest-aioresponses/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project

