pkg.soopen package index

brew / rank 1377

Install pytest with Homebrew, apt, dnf

Simple powerful testing with Python. Version 9.1.1 via Homebrew; verified 2026-06-20. Also installable with debian: sudo apt install python-pytest-doc.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install pytest

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install python-pytest-doc

Debian stable package indexes · python-pytest-doc · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install python3-pytest

Fedora Rawhide package metadata · python3-pytest · source: dl.fedoraproject.org

overview

Package summary

Simple powerful testing with Python

Commands and aliases

  • py.test
  • pytest

history

Project history and usage

pytest is a mature Python testing framework and command-line test runner known for plain assertions, fixtures, automatic discovery, detailed failure output, and a large plugin ecosystem.

Project history

pytest traces its roots to testing experiments around PyPy and Holger Krekel’s complementary-standard-library work in 2004. The std.utest component became py.test when the std project was renamed py around September or October 2004.

The 2009 py 1.0 release introduced foundational funcargs/fixtures and a plugin architecture. In November 2010, pytest 2.0 became a package separate from py, although the command was still named py.test. Pytest 3.0 in August 2016 established pytest as the recommended command-line entry point.

Adoption history

pytest grew from the PyPy and py-library communities into a general-purpose Python test framework. Its fixture and plugin architecture enabled an extensive surrounding ecosystem, while compatibility with unittest-style tests eased adoption in existing Python projects. Distribution through PyPI and operating-system package managers made it common in development environments and CI systems.

How it is used

Developers write test functions using ordinary Python assertions, request reusable fixtures through function arguments, and run discovery with the pytest command. Plugins extend collection, reporting, coverage, parallelization, frameworks, and other behavior. Pytest can also execute unittest-based test suites.

Why package nerds care

pytest is a package-ecosystem landmark: it popularized plain assert statements with rich failure introspection, composable fixtures, automatic test discovery, and a broad plugin model. Its long migration from the py library to an independent pytest package also explains legacy names such as py.test and historical dependencies encountered in older environments.

Timeline

  • 2004: std.utest became py.test as the std project was renamed py.
  • 2009: py 1.0 introduced foundational fixtures and the enduring plugin architecture.
  • 2010: pytest 2.0 was released separately from the py package.
  • 2016: pytest 3.0 made pytest the recommended command name.
  • 2020: pytest 6.0 added pyproject.toml configuration support.
  • 2025: pytest 9.0 added pytest.toml and native TOML configuration.

Related projects

  • The py library originally housed py.test before pytest became a separate distribution.
  • PyPy community testing work helped shape pytest’s origins.
  • tox commonly invokes pytest across managed Python environments and can also host pytest configuration.
  • pluggy underpins pytest’s plugin and hook system.

Sources

  • Official configuration reference: https://docs.pytest.org/en/stable/reference/customize.html
  • Official history: https://docs.pytest.org/en/stable/history.html
  • Official unittest compatibility guide: https://docs.pytest.org/en/stable/unittest.html
  • source_facts.package-manager

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
pytest.toml.pytest.tomlpytest.ini.pytest.inipyproject.tomltox.inisetup.cfg

executables

Installed executables

CommandKindExposureNote
py.testcliglobal executable
pytestcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version9.1.1
manager updated2026-06-20
local dataok
upstreamnot checked
latest detectednot detected

https://docs.pytest.org/en/latest/

install metadata

Package metadata

Package keybrew:pytest
Version9.1.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/pytest
Homepagehttps://docs.pytest.org/en/latest/
Upstream docshttps://docs.pytest.org/en/latest/
LicenseMIT
Source archivehttps://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz
Last updated2026-06-20T12:34:40Z
Pulseupdated
Dependenciespython@3.14
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepytest
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

python-pytest-doc 8.3.5-2

Simple, powerful testing in Python - Documentation

https://pytest.org/

sudo apt install python-pytest-doc
  • Section: doc
  • Architecture: all
  • Source Package: pytest
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Pytest
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python-pytest-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-pytest 8.3.5-2

Simple, powerful testing in Python3

https://pytest.org/

sudo apt install python3-pytest
  • Section: python
  • Architecture: all
  • Source Package: pytest
  • 7 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Pytest
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-pytest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

python-pytest-doc 7.4.4-1

Simple, powerful testing in Python - Documentation

https://pytest.org/

sudo apt install python-pytest-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: pytest
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Pytest
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python-pytest-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-pytest 7.4.4-1

Simple, powerful testing in Python3

https://pytest.org/

sudo apt install python3-pytest
  • Section: universe/python
  • Architecture: all
  • Source Package: pytest
  • 8 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Pytest
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-pytest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

python3-pytest 9.1.1-1.fc45

Simple powerful testing with Python

https://pytest.org

sudo dnf install python3-pytest
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: pytest
  • 3 dependencies
  • 6 provides
  • normalized package name match
  • Matched by: Pytest
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-pytest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation