Unverified50% confidenceSolutionExact time
By traversing each item's fixturenames via the pytest hook pytest_collection_modifyitems and writing them to disk at pytest_sessionfinish, a 'test → fixture names' mapping can be generated.
1
Sources
50%
Confidence
Long-term
Relevance
10/17/2026
First Seen
Sources
Related Entities
Related Claims
Unverifiedpytest 启动时会自动扫描测试目录树,按从根目录到子目录的顺序加载所有 conftest.py,构建具有层级优先级的 fixture 注册表,子目录的 conftest.py 可覆盖或扩展父目录同名 fixture72% similarUnverifiedPydantic 基于 Python 类型注解(Type Hints,PEP 484)实现运行时数据校验与序列化69% similarUnverifiedPython 的类型注解在运行时可通过 __annotations__ 属性访问,配合 Pydantic 库可实现运行时数据校验63% similarVerifiedPydantic is a mainstream data validation library in the Python ecosystem that enforces data structure validation at runtime through type annotations.63% similarUnverifiedPyTorch is known for its dynamic computation graph (define-by-run) and Pythonic interface62% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1051132API
curl https://kongchang.com/api/v1/knowledge/claims/1051132MCP
get_claim(id=1051132)