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

#### What's the problem this feature will solve? Currently the docs mention that you can use `[tool.pytest.ini_options]` for configuring `pytest` but they don't specify which "type"/"shape" of TOML object can...

type: docs
topic: config

Using pytest 8.1.1, I'm trying to add a parameterized fixture to a test during pytest_generate_tests. While it's possible to do so when the test is expecting a parameter with the...

topic: parametrize
topic: fixtures

I have a pyest plugin (https://github.com/dcermak/pytest_container) that provides multiple fixtures which perform some heavy lifting (container launching). The plugin performs roughly the following action in the fixtures (simplified version, the...

topic: fixtures
plugin: logging

Hi, While running some tests with large numpy arrays, I figured out that there is a difference in how pytest cleans up the data for the failed and passed test...

topic: tracebacks
type: performance

Closes #12044 Will do other steps from the template, but before I would like a confirmation that this fix make sense. It does fix the issue of assertion rewriting mixed...

``` [tool.pytest.ini_options] minversion = "8.0" python_files = "*.test.py" addopts = [ "--import-mode=importlib", ] ``` Using `--import-mode=importlib` is more lenient than the default `import-mode`, and so it allowed me to use...

topic: rewrite

From several years ago until recently (works in 8.0.2, doesn't work in 8.1.1), it was possible to get teardown exception information in `pytest_fixture_post_finalizer` by calling `sys.exc_info()`. This appears to have...

type: regression
topic: fixtures

I keep getting errors that I cannot debug because the printed `AssertionError` is censored so much that makes impossible to see what was the difference. Adding `-vvvv` did not help...

type: bug
topic: reporting
topic: rewrite

Hello, This PR resolves https://github.com/pytest-dev/pytest/issues/11666. This is my first time contributing to an open source project so please excuse any beginner mistakes. I used the pull request https://github.com/pytest-dev/pytest/pull/11700 as an...

There is a task to track exceptions when setting up and finalizing fixtures. When setting up, an exception can be obtained in the pytest_fixture_setup hook: ```python @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup(fixturedef): result...

type: proposal
topic: fixtures