Skip to content

Conversation

altendky
Copy link
Member

@altendky altendky commented Mar 4, 2020

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

pytest-twisted supports async def test functions and fixtures as well as async def/yield fixtures.

@altendky
Copy link
Member Author

altendky commented Mar 4, 2020

I will note the caveat that pytest-twisted does expect the developer to decorate their tests and fixtures to explicitly notify pytest-twisted of them. I don't know if that is relevant to this warning or not.

@nicoddemus
Copy link
Member

Thanks @altendky!

I don't know if that is relevant to this warning or not.

No, I don't think so. Either way the developer should install an async-related plugin, so it definitely is worth mentioning pytest-twisted. 👍

@nicoddemus nicoddemus merged commit 333bb08 into master Mar 5, 2020
@nicoddemus nicoddemus deleted the pytest_twisted_in_async_warning branch March 5, 2020 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants