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 573 pytest issues
Sort by recently updated
recently updated
newest added

#### What's the problem this feature will solve? Currently (from what I gather), the only place assertion rewriting is exposed is from `register_assert_rewrite`. As far as I can tell, this...

type: proposal
topic: rewrite

It will be nice to be able be able to ask pytestbot to backport a PR to a target branch, right now it's a bit tedious. I've started an attempt...

type: infrastructure

Consider a test like this: ```python @pytest.mark.parametrize('text1, text2, equal', [ # schemes ("http://en.google.com/blah/*/foo", "https://en.google.com/blah/*/foo", False), ("https://en.google.com/blah/*/foo", "https://en.google.com/blah/*/foo", True), ("https://en.google.com/blah/*/foo", "ftp://en.google.com/blah/*/foo", False), # subdomains ("https://en.google.com/blah/*/foo", "https://fr.google.com/blah/*/foo", False), ("https://www.google.com/blah/*/foo", "https://*.google.com/blah/*/foo", False), ("https://*.google.com/blah/*/foo",...

topic: reporting
topic: parametrize
topic: tracebacks

Hi, There seems to be a change between version 7.1 and version 7.0 that causes pytest_plugins to be bugged. I understand that defining 'pytest_plugins' in a non-top-level conftest is no...

status: needs information

currently pytest plugins have to replicate a number of mechanisms to handle async fixtures #207 was originally intended to help with that, but was more broad than necessary with #7337...

type: proposal

Currently `pytest-xdist` is working without a problem with `record_property`, but it does not save the values using `record_xml_attribute` fixture. Here's the code to reproduce this issue ``` import pytest def...

type: bug
plugin: xdist

- [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using - [x] pytest and...

plugin: doctests

[Live logs](https://docs.pytest.org/en/stable/logging.html#live-logs) says >You can call set_log_path() to customize the log_file path dynamically. This functionality is considered experimental. It does not explain how to use `set_log_path()` as a hook.(Maybe which...

type: docs
plugin: logging

Adding Fixtures to a parametrization of a test function via `pytest.mark.usefixtures` has no effect. The fixtures are not executed and are missing from `request.fixturenames`. Example: ```python import pytest @pytest.fixture def...

type: bug
topic: parametrize
topic: fixtures

I put the option in my pyproject.toml file as ``` [tool.pytest] disable_test_id_escaping_and_forfeit_all_rights_to_community_support = true ``` and ``` [tool.pytest.ini_options] disable_test_id_escaping_and_forfeit_all_rights_to_community_support = true ``` And a pytest.ini file as ``` [pytest] disable_test_id_escaping_and_forfeit_all_rights_to_community_support...

type: bug
topic: config