Bumps pytest-asyncio from 0.20.1 to 0.20.2.
Release notesSourced from pytest-asyncio's releases.
pytest-asyncio 0.20.2
title: 'pytest-asyncio: pytest support for asyncio'
pytest-asyncio is an Apache2 licensed library, written in Python, for testing asyncio code with pytest.
asyncio code is usually written in the form of coroutines, which makes it slightly more difficult to test using normal testing tools. pytest-asyncio provides useful fixtures and markers to make testing easier.
@pytest.mark.asyncio async def test_some_asyncio_code(): res = await library.do_something() assert b"expected result" == respytest-asyncio has been strongly influenced by pytest-tornado.
Features
- fixtures for creating and injecting versions of the asyncio event loop
- fixtures for injecting unused tcp/udp ports
- pytest markers for treating tests as asyncio coroutines
- easy testing with non-default event loops
- support for [async def]{.title-ref} fixtures and async generator fixtures
- support auto mode to handle all async fixtures and tests automatically by asyncio; provide strict mode if a test suite should work with different async frameworks simultaneously, e.g.
asyncioandtrio.Installation
... (truncated)
ChangelogSourced from pytest-asyncio's changelog.
Commits0.20.2 (22-11-11)
- Fixes an issue with async fixtures that are defined as methods on a test class not being rebound to the actual test instance.
[#197](https://github.com/pytest-dev/pytest-asyncio/issues/197) <https://github.com/pytest-dev/pytest-asyncio/issues/197>_- Replaced usage of deprecated
@pytest.mark.tryfirstwith@pytest.hookimpl(tryfirst=True)[#438](https://github.com/pytest-dev/pytest-asyncio/issues/438) <https://github.com/pytest-dev/pytest-asyncio/pull/438>_
07a1416Prepare release of v0.20.2.dc3ad21Build(deps): Bump pytest-trio in /dependencies/default (#441)d9faba8Build(deps): Bump mypy from 0.982 to 0.990 in /dependencies/default (#440)fe63e34Handle bound fixture methods correctly (#439)38fc032Bump to pytest 7.2.0 (#438)28ba705Build(deps): Bump hypothesis in /dependencies/default (#437)91e723aBuild(deps): Bump zipp from 3.9.0 to 3.10.0 in /dependencies/default (#434)0ca201bFix setuptools deprecation warning for license_file (#432)- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)