async-lru
                                
                                
                                
                                    async-lru copied to clipboard
                            
                            
                            
                        Bump pytest-asyncio from 0.14.0 to 0.19.0
Bumps pytest-asyncio from 0.14.0 to 0.19.0.
Release notes
Sourced from pytest-asyncio's releases.
pytest-asyncio 0.19.0
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.19.0 (22-07-13)
- BREAKING: The default
 asyncio_modeis now strict.[#293](https://github.com/pytest-dev/pytest-asyncio/issues/293) <https://github.com/pytest-dev/pytest-asyncio/issues/293>_- Removes
 setup.pysince all relevant configuration is presentsetup.cfg. Users requiring an editable installation of pytest-asyncio need to use pip v21.1 or newer.[#283](https://github.com/pytest-dev/pytest-asyncio/issues/283) <https://github.com/pytest-dev/pytest-asyncio/issues/283>_- Declare support for Python 3.11.
 0.18.3 (22-03-25)
- Adds
 pytest-trio <https://pypi.org/project/pytest-trio/>_ to the test dependencies- Fixes a bug that caused pytest-asyncio to try to set up async pytest_trio fixtures in strict mode.
 [#298](https://github.com/pytest-dev/pytest-asyncio/issues/298) <https://github.com/pytest-dev/pytest-asyncio/issues/298>_0.18.2 (22-03-03)
- Fix asyncio auto mode not marking static methods.
 [#295](https://github.com/pytest-dev/pytest-asyncio/issues/295) <https://github.com/pytest-dev/pytest-asyncio/issues/295>_- Fix a compatibility issue with Hypothesis 6.39.0.
 [#302](https://github.com/pytest-dev/pytest-asyncio/issues/302) <https://github.com/pytest-dev/pytest-asyncio/issues/302>_0.18.1 (22-02-10)
- Fixes a regression that prevented async fixtures from working in synchronous tests.
 [#286](https://github.com/pytest-dev/pytest-asyncio/issues/286) <https://github.com/pytest-dev/pytest-asyncio/issues/286>_0.18.0 (22-02-07)
- Raise a warning if
 @pytest.mark.asyncio is applied to non-async function.[#275](https://github.com/pytest-dev/pytest-asyncio/issues/275) <https://github.com/pytest-dev/pytest-asyncio/issues/275>_- Support parametrized
 event_loopfixture.[#278](https://github.com/pytest-dev/pytest-asyncio/issues/278) <https://github.com/pytest-dev/pytest-asyncio/issues/278>_0.17.2 (22-01-17)
- Require
 typing-extensionson Python`_- Fix a regression in tests collection introduced by 0.17.1, the plugin works fine with non-python tests again.
 [#267](https://github.com/pytest-dev/pytest-asyncio/issues/267) <https://github.com/pytest-dev/pytest-asyncio/issues/267>_0.17.1 (22-01-16)
- Fixes a bug that prevents async Hypothesis tests from working without explicit
 asynciomarker when--asyncio-mode=autois set.[#258](https://github.com/pytest-dev/pytest-asyncio/issues/258) <https://github.com/pytest-dev/pytest-asyncio/issues/258>_- Fixed a bug that closes the default event loop if the loop doesn't exist
 [#257](https://github.com/pytest-dev/pytest-asyncio/issues/257) <https://github.com/pytest-dev/pytest-asyncio/issues/257>_- Added type annotations.
 [#198](https://github.com/pytest-dev/pytest-asyncio/issues/198) <https://github.com/pytest-dev/pytest-asyncio/issues/198>_- Show asyncio mode in pytest report headers.
 [#266](https://github.com/pytest-dev/pytest-asyncio/issues/266) <https://github.com/pytest-dev/pytest-asyncio/issues/266>_- Relax
 asyncio_modetype definition; it allows to support pytest 6.1+.[#262](https://github.com/pytest-dev/pytest-asyncio/issues/262) <https://github.com/pytest-dev/pytest-asyncio/issues/262>_0.17.0 (22-01-13)
pytest-asynciono longer alters existing event loop policies.[#168](https://github.com/pytest-dev/pytest-asyncio/issues/168) <https://github.com/pytest-dev/pytest-asyncio/issues/168>,[#188](https://github.com/pytest-dev/pytest-asyncio/issues/188) <https://github.com/pytest-dev/pytest-asyncio/issues/168>- Drop support for Python 3.6
 - Fixed an issue when pytest-asyncio was used in combination with
 flakyor inherited asynchronous Hypothesis tests.[#178](https://github.com/pytest-dev/pytest-asyncio/issues/178) <https://github.com/pytest-dev/pytest-asyncio/issues/178>_[#231](https://github.com/pytest-dev/pytest-asyncio/issues/231) <https://github.com/pytest-dev/pytest-asyncio/issues/231>_- Added
 flaky <https://pypi.org/project/flaky/>_ to test dependencies- Added
 unused_udp_portandunused_udp_port_factoryfixtures (similar tounused_tcp_portandunused_tcp_port_factorycounterparts.[#99](https://github.com/pytest-dev/pytest-asyncio/issues/99) <https://github.com/pytest-dev/pytest-asyncio/issues/99>_- Added the plugin modes: strict, auto, and legacy. See
 documentation <https://github.com/pytest-dev/pytest-asyncio#modes>_ for details.[#125](https://github.com/pytest-dev/pytest-asyncio/issues/125) <https://github.com/pytest-dev/pytest-asyncio/issues/125>_- Correctly process
 KeyboardInterruptduring async fixture setup phase[#219](https://github.com/pytest-dev/pytest-asyncio/issues/219) <https://github.com/pytest-dev/pytest-asyncio/issues/219>_
... (truncated)
Commits
2da33c4docs: Prepare v0.19.0 release. (#385)07beb80opt into strict mode by default (#380)25c54a5Clarify documentation of event_loop fixture (#375)49f07a4Bump typing-extensions from 4.2.0 to 4.3.0 in /dependencies/default (#382)739198bBump hypothesis from 6.48.0 to 6.48.3 in /dependencies/default (#381)db72f25Bump importlib-metadata from 4.11.4 to 4.12.0 in /dependencies/default (#378)4cf16cfBump hypothesis from 6.47.3 to 6.48.0 in /dependencies/default (#377)f13c85fdocs: Fix typo in README.b463f72Python 3.11 support (#370)860ff51Bump hypothesis from 6.47.2 to 6.47.3 in /dependencies/default (#373)- 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)