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? `--log-level` is nice. However, certain modules (like [SQLAlchemy](https://docs.sqlalchemy.org/en/14/core/engines.html#configuring-logging)) default to certain log level, which doesn't get set/adjusted/overwritten via `--log-level` which only sets...

type: proposal
plugin: logging

I am experiencing sporadic and unusual behaviour with pytest, which is related to a few issues already posted here but I can't be sure that it's the same thing. I...

plugin: logging

- [X] a detailed description of the bug or problem you are having I wrote a simple test ```py @pytest.mark.parametrize("dict1, dict2, expected_dict", [ ({}, {}, {}), ({}, {"a": 1}, {"a":...

status: needs information

Please create 2 files in any folder with below codes: 1) test_py_issue.py ```python import pytest def idfn(fixture_value): return 0 def create_test(): import somerandomPACKAGE # inserting error in fixture return ["a",...

status: needs information

Currently (7.2.0.dev264+g6ad32a9c5), the console heading for some sections is colorized ('warnings', 'short test summary info'); while other sections are not (ERRORS, FAILURES, PASSES, and 'rerun test summary info' if the...

type: proposal
topic: reporting

I am not sure I should be able to do this, but I am wondering why not. Code is below. What I would like to do is create two fixtures,...

type: enhancement
topic: fixtures

Fixes: #624. The following directory structure will now be collected correctly. ``` . ├── link -> . └── test_recursive.py ```

`--durations` is tricked by `freezegun`, when `freezegun` is used in `autouse` fixture. Example: ```python from freezegun import freeze_time @pytest.yield_fixture(autouse=True) def frozen_time(): with freeze_time("2020-01-01T12:00:00Z"): yield def test_my_django_view(admin_client): resp = admin_client.get(...) assert...

type: enhancement

I have a pytest.ini file to point my test code to the source code. The file is in the test directory. I am running this within PyCharm With pytest 7.1.2,...

status: needs information

### Test scenario `test_file.py` ```python import pytest @pytest.mark.parametrize("bar", [1,2,3]) def test_foo(bar): print(bar) ``` The following invalid nodeid is accepted by `pytest` instead of printing an error ```bash $ pytest "test_file.py[foobar]"...