pytest-asyncio icon indicating copy to clipboard operation
pytest-asyncio copied to clipboard

Asyncio support for pytest

Results 87 pytest-asyncio issues
Sort by recently updated
recently updated
newest added

Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.54.1 to 6.54.3. Release notes Sourced from hypothesis's releases. Hypothesis for Python - version 6.54.3 This patch teaches the Ghostwriter an additional check for function and class...

dependencies
python

I am working with `python3.10` and `pytest=7.1.2` version It seems with the latest version of `pytest-asyncio=0.19.0` a regression has been introduced and this [bug](https://github.com/pytest-dev/pytest-asyncio/issues/89) is back. Using the same [example...

Hi, I'm not sure this is the purpose of this library but I want to run pytest tests asynchronously. Consider this example: ```python import asyncio import pytest @pytest.mark.asyncio async def...

To test the basic usage of [websockets](https://pypi.org/project/websockets/), I want to start a server and test the return string from client, I think server and client should be in separate thread....

feature

There seems to be a bug with how [`request.getfixturevalue(argname)`](https://docs.pytest.org/en/latest/reference.html#_pytest.fixtures.FixtureRequest.getfixturevalue) interacts with pytest-asyncio. Calling the function leads to a runtime error saying the event loop is already running. If you change...

feature

To give you a minimal proof of concept in python3.10: `runner.py` ```python3 import pytest import asyncio # using nest_asyncio mitigates the problem #import nest_asyncio #nest_asyncio.apply() async def runner(): pytest.main(['-k', 'test_asdf',...

feature

Hey there, thanks for the awesome work. :) I'm trying to check if a function is async or not within `pytest_generate_tests`. I'm using `async_mode=auto` and I would like to keep...

feature

This adds the option to add timeouts to tests either via marker kwargs or via options/CLI arguments. The naming of the options is intentionally prefixes with asyncio to avoid clashes...

I am trying to create a test case for the below async function `get_data`. I get Runtime warning as `RuntimeWarning: coroutine 'TestAsyncStatSvc.test_async_get_data' was never awaited testfunction(**testargs) ` Below is my...

feature

**Autouse** async generator fixtures are no longer executed since 0.18.0, git bisect points to d8efa640f0aa1ba8856b908ba486150588018209. Fixtures with explicit dependencies work just fine. I have tried both: - `@pytest.fixture` - `@pytest_asyncio.fixture`...

bug