夹具生成器

人工智能 社区

技能解读

当前原文的自动摘译,尚未人工审校。

先决条件

蟒蛇

安装

上游的要求和注意事项: .. code-block:: python https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery_ Python 3.10+ 或 PyPy3 基本用法或入门说明:

文档

https://docs.pytest.org/en/stable/how-to/fixtures.html

来源

代理技能交换来源:agentskillexchange/skills — 由 TomeVault 分发。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
人工智能
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@tomevault-io · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
Python >=3.10
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# Pytest Fixture Generator



## Prerequisites

Python

## Installation

Requirements and caveats from upstream:
- .. code-block:: python
- <https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery>_
- Python 3.10+ or PyPy3

Basic usage or getting-started notes:
- An example of a simple test:
- Thanks to pytest's detailed assertion introspection, you can simply use plain assert statements. See getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>_ for more examples.
- Can run unittest <https://docs.pytest.org/en/stable/how-to/unittest.html>_ (or trial)

- Source: https://github.com/pytest-dev/pytest
- Extracted from upstream docs: https://raw.githubusercontent.com/pytest-dev/pytest/HEAD/README.rst

## Documentation

- https://docs.pytest.org/en/stable/how-to/fixtures.html

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/pytest-fixture-generator/)

---
> Source: [agentskillexchange/skills](https://github.com/agentskillexchange/skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。