-
As someone pointed out in my pytest training, pytest currently silently accepts:
```python
def test_fixt(fixt=42):
...
```
with `fixt` obviously being `42` in the test function no matter …
-
The idea is to implement a pool per test type. meaning having pool not per unique folter+TestSuite but the only test suite
It will allow different test files that are located in different folders to …
-
There are a lot of requests about documentation for programmatic page creation. I’d like to add one more request for the "pytest fixtures" recipe of using Wagtail pages in unit tests.
Here’s an exa…
-
### Discussed in https://github.com/pytest-dev/pytest/discussions/11412
Originally posted by **jgersti** September 7, 2023
In #11284 @RonnyPfannschmidt mentioned that he would like to incorpo…
-
In the docs, under "reporting hooks" I see a couple of hooks that I would expect under "collection hooks":
- pytest_collectstart
- pytest_make_collect_report
- pytest_itemcollected
- pytest_collec…
-
**Describe the bug**
Packages that are used just as pytest fixtures are wrongly set as unused.
**To Reproduce**
Steps to reproduce the behavior:
1. Install `pytest-freezer` as an example
…
gpkc updated
6 months ago
-
**Is your feature request related to a problem? Please describe.**
when using dash_duo selenium test fixture with pytest, I'm facing this error: `ScopeMismatch: You tried to access the 'function' sco…
-
Pytest allows to define paramtrized fixtures. Example:
```python
@pytest.fixture(params=['A', 'B', 'C'])
def case(request):
return request.param
def test_1(case):
assert case == 'E'
…
-
Allow using dishka container to provide fixtures
-
Currently, a fixture can be scoped as function, class, module, or session.
I propose a fixture can also be scoped per _parametrization_.
Consider:
```
import time
@pytest.fixture
def slow_setup():
…