macOS
brew install pytestlocal Homebrew formula metadata
安装
brew install pytestlocal Homebrew formula metadata
sudo apt install python-pytest-docDebian stable package indexes · python-pytest-doc · 来源: deb.debian.org
sudo dnf install python3-pytestFedora Rawhide package metadata · python3-pytest · 来源: dl.fedoraproject.org
概览
Simple powerful testing with Python
历史
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.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
pytest.toml.pytest.tomlpytest.ini.pytest.inipyproject.tomltox.inisetup.cfg可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
py.test | cli | 全局可执行文件 | |
pytest | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://docs.pytest.org/en/latest/
安装元数据
| 软件包键 | brew:pytest |
|---|---|
| 版本 | 9.1.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pytest |
| 主页 | https://docs.pytest.org/en/latest/ |
| 上游文档 | https://docs.pytest.org/en/latest/ |
| 许可证 | MIT |
| 源码归档 | https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz |
| 最后更新 | 2026-06-20T12:34:40Z |
| Pulse | updated |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pytest |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
python-pytest-doc 8.3.5-2
Simple, powerful testing in Python - Documentation
sudo apt install python-pytest-docpython3-pytest 8.3.5-2
Simple, powerful testing in Python3
sudo apt install python3-pytestpython-pytest-doc 7.4.4-1
Simple, powerful testing in Python - Documentation
sudo apt install python-pytest-docpython3-pytest 7.4.4-1
Simple, powerful testing in Python3
sudo apt install python3-pytestpython3-pytest 9.1.1-1.fc45
Simple powerful testing with Python
sudo dnf install python3-pytest来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.