Contents

pytest 9.0.2

0

pytest: simple powerful testing with Python

pytest: simple powerful testing with Python

Stars: 13567, Watchers: 13567, Forks: 3020, Open Issues: 992

The pytest-dev/pytest repo was created 10 years ago and the last code push was 17 hours ago.
The project is extremely popular with a mindblowing 13567 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
None
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 992 open issues on GitHub

  • build(deps): Bump actions/cache from 5.0.1 to 5.0.2
  • Preserve dictionary insertion order in assertion output
  • Dynamic scope callable for pytest.fixture() cannot be correctly typed
  • -p silently fails if parameter is an invalid plugin
  • Add test for unserializable marker arguments
  • Docs: clarify conftest usage and fixture import pitfalls
  • fix: validate marker names in -m expression with –strict-markers
  • fix: show correct program name in argparse help/errors
  • fix(parametrize): handle trailing comma in string argnames
  • experiment: use uv and dependency-groups in build pipelines
  • cacheprovider: simplify cache directory creation
  • [DONT REVIEW] WIP: Migrate Node init logic to from_parent factory methods
  • Fix conftest fixture scoping when testpaths points outside rootdir
  • An exception from pytest_fixture_post_finalizer prevents fixture from being torn down completely
  • pytest crashing with ptest-xdist

See more issues on GitHub