Contents

pytest 8.1.1

0

pytest: simple powerful testing with Python

pytest: simple powerful testing with Python

Stars: 11309, Watchers: 11309, Forks: 2489, Open Issues: 850

The pytest-dev/pytest repo was created 8 years ago and the last code push was 2 hours ago.
The project is extremely popular with a mindblowing 11309 github stars!

How to Install pytest

You can install pytest using pip

pip install pytest

or add it to a project with poetry

poetry add pytest

Package Details

Author
Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin, Others (See AUTHORS)
License
MIT
Homepage
PyPi:
https://pypi.org/project/pytest/
GitHub Repo:
https://github.com/pytest-dev/pytest

Classifiers

  • Software Development/Libraries
  • Software Development/Testing
  • Utilities
No  pytest  pypi packages just yet.

Errors

A list of common pytest errors.

Code Examples

Here are some pytest code examples and snippets.

GitHub Issues

The pytest package has 850 open issues on GitHub

  • arguments passing to request.params getting overwritted from test
  • adding a link to the Python logging page
  • With -vv, display the full skip/xfail reason instead of "…"
  • Skip reasons get truncated, even with -vv
  • add tools for warning erroing and filtering to support different workflows
  • config: avoid stat storm in _getconftestmodules
  • [7.0.x] Merge pull request #9522 from holmanb/rewrite-test
  • Disable the creation of the pycache directory… From pytest.ini / pyproject.toml
  • Error reporting in pytest.approx()
  • Stop testing a file on first fail
  • Enable testing with Python 3.11
  • Expose FixtureDef and SubRequest
  • Option to hide pluggy even with --full-trace is used
  • Add a function to detect if pytest is running
  • Add additional docs for uncooperative ctor deprecation

See more issues on GitHub