Add pytest-twisted to list of async def handling plugins

https://github.com/pytest-dev/pytest-twisted/tree/v1.12#ensuredeferred

[pytest-twisted](https://github.com/pytest-dev/pytest-twisted) supports `async def` test functions and fixtures as well as `async def`/`yield` fixtures.
This commit is contained in:
Kyle Altendorf 2020-03-04 17:42:08 -05:00 committed by GitHub
parent acec0b688f
commit dce2621710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ def async_warn(nodeid: str) -> None:
) )
msg += " - pytest-asyncio\n" msg += " - pytest-asyncio\n"
msg += " - pytest-trio\n" msg += " - pytest-trio\n"
msg += " - pytest-tornasync" msg += " - pytest-tornasync\n"
msg += " - pytest-twisted"
warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid))) warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))
skip(msg="async def function and no async plugin installed (see warnings)") skip(msg="async def function and no async plugin installed (see warnings)")