pytest icon indicating copy to clipboard operation
pytest copied to clipboard

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

Results 653 pytest issues
Sort by recently updated
recently updated
newest added

Сontinue #11976 The solution from #11976 did not solve the problem with sorting tests with multiple parameters Tests ```python import pytest @pytest.mark.parametrize('proto', ['serial', 'telnet', 'ssh'], scope='class') @pytest.mark.parametrize('unit', [1, 2, 3],...

type: bug
topic: parametrize
type: regression
topic: fixtures

solution #12163

status: needs information
bot:chronographer:provided

Hi pytest team! While I'm developing a new feature to the [pytest-embedded](https://github.com/espressif/pytest-embedded) plugin, I realize that `|` is not allowed in pytest markers. (Inside the pytest-embedded plugin, I'm using `|`...

status: needs information

#### What's the problem this feature will solve? This allows for the usual handling and follows the [Python documentation](https://docs.python.org/3/library/exceptions.html#Exception). #### Describe the solution you'd like Replace inheritance of `OutcomeException` from...

type: docs

When you will run the "test_example_fixture" test, You will observe that the **teardown** is never printed in console. This is restricting the clean up in my project. **NOTE: It happens...

I tried to upgrade pytest from 8.0.2 to latest 8.1.1 and I got this error: ``` ___________ ERROR collecting tests/conftest.py _____________________ import file mismatch: imported module 'conftest' has this __file__...

topic: collection

I got a project that cannot be tested with parallelism, as it requires exclusive access to some resources. Unfortunately, this also applies during unit testing. This wasn't a problem up...

status: needs information
stale

pytest's "official" public API is exported by the `pytest` package, and everything else is defined in the `_pytest` package. Currently, `pytest` only contains APIs that users need to use directly:...

type: proposal
topic: typing

#### What's the problem this feature will solve? It's possible to create custom markers like so: ```py @pytest.mark.my_device_under_test ``` This marker can the be used to de/select tests via marker...

type: proposal
topic: selection
topic: marks

I've been happily using pytest for several projects for the past few years. There's one part about pytest that I still struggle to get behind: The way that fixtures magically...

type: proposal
topic: fixtures