Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
.. 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
An integration of aioresponses
_ for py.test
_ similar to pytest-responses
_
You can install "pytest-aioresponses" via pip
_ from PyPI
_::
$ pip install pytest-aioresponses
.. 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
Contributions are very welcome.
Distributed under the terms of the MIT
_ license, "pytest-aioresponses" is free and open source software
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/pytest-aioresponses/
.. _aioresponses
: https://pypi.org/project/aioresponses/
.. _pytest-responses
: https://pypi.org/project/pytest-responses/
.. _py.test
: https://pypi.org/project/pytest/
FAQs
py.test integration for aioresponses
We found that pytest-aioresponses demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.