Contents

pytest 8.3.3

0

pytest: simple powerful testing with Python

pytest: simple powerful testing with Python

Stars: 11974, Watchers: 11974, Forks: 2658, Open Issues: 885

The pytest-dev/pytest repo was created 9 years ago and the last code push was Yesterday.
The project is extremely popular with a mindblowing 11974 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
None
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 885 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