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:
parent
acec0b688f
commit
dce2621710
|
@ -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)")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue