You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we use pytest.mark.asyncio combined with pytest.mark.parameter to execute multiple test cases asynchronously, in order to shorten the entire execution process?
If possible, could you provide a code example
The text was updated successfully, but these errors were encountered:
It's possible to use pytest.mark.asyncio in conjunction with pytest.mark.parametrize, but the tests will be executed synchronously. Pytest doesn't run tests cases concurrently, neither does pytest-asyncio. Please refer to #69 for a more in-depth discussion.
I think it's a good idea to keep this issue open and use it for adding those two points to the documentation:
An explanation how pytest-asyncio runs tests and that tests don't run concurrently.
An example showing the use of asyncio and parametrize markers for the same test
Can we use pytest.mark.asyncio combined with pytest.mark.parameter to execute multiple test cases asynchronously, in order to shorten the entire execution process?
If possible, could you provide a code example
The text was updated successfully, but these errors were encountered: