pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
С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],...
solution #12163
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 `|`...
#### 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...
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__...
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...
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:...
#### 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...
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...