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

head-fork: PurityLake/pytest compare: filename-length-fix base-fork: pytest-dev/pytest base: main Refers to #10169 I simply added a `except` statement to catch the `OSError` Also just noticed a fairly large typo in the...

The text references a "previous example" that doesn't exist in the document. Readers coming directly to this document via a search engine may not have seen the previous example. It...

- [ ] a detailed description of the bug or problem you are having -conftest.py `def pytest_sessionstart(): init_data() def pytest_sessionfinish(): clear_data() ` -run_all_cases.py `if __name__ == '__main__': pytest.main()` - [...

type: question

Regarding CI not running, right - CI doesn't run when triggered this way - this also happens for the create-pull-request actions and similar. Workaround is to close & reopen, then...

type: infrastructure

According to the [docs](https://docs.pytest.org/en/stable/usage.html#record-testsuite-property) it is possible to add a junit property at test suite level. This will work fine without pytest-xdist but fails when adding _-n2_ or similiar to...

plugin: xdist
plugin: junitxml
topic: fixtures

addresses #3523 setup.cfg also a structural refactor and cleanup of the config file finding/loading - [ ] changelog - [x] writeup in deprecated docs/links

fixes #4562 must be merged after #8508

type: deprecation

based on https://twitter.com/davidism/status/1484580868840558593 we should have a tool to help to turn a warning into a filterwarning expression we should also shift toward having pytest/pytest plugin warnings be warnings, even...

type: proposal
plugin: warnings

I have a custom flag defined in conftest.py, and when I try to assign it to a value that is too long pytest crashes before ever getting to my code....

type: bug
status: easy