-
I have created a minimal case:
```
$ tree .
.
├── dir1
│ └── dir2 -> ../dir2
└── dir2
└── test_fixture.py
$ cat dir2/test_fixture.py
import pytest
@pytest.fixture
def i_am_a_fixtu…
-
I'm running the tests as [I described here](https://github.com/python-trio/pytest-trio/issues/84#issuecomment-633430425) (`PYTHONPATH="." pytest --pyargs pytest_trio`), but it seems it doesn't recogni…
-
## Description
This:
```python
@pytest.fixture
def project_context(config_loader):
return KedroContext(
package_name="my_package_name",
project_path=Path.cwd(),
c…
-
# Pytest: How to use fixtures as arguments in parametrize | Engineering for Data Science
Using fixtures in parametrized pytest tests
[https://engineeringfordatascience.com/posts/pytest_fixtures_with…
-
I am using this approach in some of my fixtures:
```python
@pytest.fixture()
def async_wrapper():
"""Fixture to convert all regular functions into async ones."""
def factory(template: s…
-
- [ ] Include a detailed description of the bug or suggestion
I took a look at pytest's source code and it looks like pytest records the names of all fixtures with autouse set to True. It then uses t…
-
pytest version 5.2.2
Tried to use dynamic scopes for fixtures. However, the scope definition is executed only once - during the fixture definition.
We would like to have option to control fixture …
-
https://github.com/pytest-dev/pytest-asyncio has a very convenient feature: async (generator) fixtures. I.e.
```python
@pytest.fixture()
async def connection():
async with Connection() as conn…
-
I've looked at the older but similar issue #4017 and the newer (very similar but not the same) #6962.
This problem cannot be related to #6962 because I'm in the 4.6.x branch of Pytest. It could be r…
-
- [ x] a detailed description of the bug or suggestion
- [ x] output of `pip list` from the virtual environment you are using
- [ x] pytest and operating system versions
- [ x] minimal example if p…