pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
#### 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...
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...
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",...
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...
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...
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...
- [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...
[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...
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...
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...