chore(deps-dev): bump pytest-asyncio from 0.19.0 to 0.20.1
Bumps pytest-asyncio from 0.19.0 to 0.20.1.
Release notes
Sourced from pytest-asyncio's releases.
pytest-asyncio 0.20.1
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)
Changelog
Sourced from pytest-asyncio's changelog.
0.20.1 (22-10-21)
- Fixes an issue that warned about using an old version of pytest, even though the most recent version was installed.
[#430](https://github.com/pytest-dev/pytest-asyncio/issues/430) <https://github.com/pytest-dev/pytest-asyncio/issues/430>_0.20.0 (22-10-21)
- BREAKING: Removed legacy mode. If you're upgrading from v0.19 and you haven't configured
asyncio_mode = legacy, you can upgrade without taking any additional action. If you're upgrading from an earlier version or you have explicitly enabled legacy mode, you need to switch to auto or strict mode before upgrading to this version.- Deprecate use of pytest v6.
- Fixed an issue which prevented fixture setup from being cached.
[#404](https://github.com/pytest-dev/pytest-asyncio/issues/404) <https://github.com/pytest-dev/pytest-asyncio/pull/404>_
Commits
c8d0174fix: Do not warn about outdated pytest version when pytest>=7 is installed. (...6450ddbPrepare release of v0.20.0. (#428)150f29cBuild(deps): Bump hypothesis in /dependencies/default (#427)adc8809Build(deps): Bump typing-extensions in /dependencies/default (#425)4abf9d1Build(deps): Bump zipp from 3.8.1 to 3.9.0 in /dependencies/default (#424)eb487bcBuild(deps): Bump hypothesis in /dependencies/default (#423)907c461Refactor pytest_pycollect_makeitems (#421)d45ab21feat: Add deprecation warning for pytest < 7. (#420)cab20f4Build(deps): Bump importlib-metadata in /dependencies/default (#415)d9f7756Build(deps): Bump hypothesis in /dependencies/default (#416)- Additional commits viewable 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)
Codecov Report
Base: 86.94% // Head: 86.94% // No change to project coverage :thumbsup:
Coverage data is based on head (
19815b9) compared to base (9adc604). Patch has no changes to coverable lines.
Additional details and impacted files
@@ Coverage Diff @@
## main #78 +/- ##
=======================================
Coverage 86.94% 86.94%
=======================================
Files 20 20
Lines 567 567
=======================================
Hits 493 493
Misses 74 74
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 86.94% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Superseded by #84.