LogoClawIndex
CasesSkillsAbout
LogoClawIndex

pytest - Pytest testing patterns for Python

Provides guidance and code patterns for writing Python tests using pytest, including fixtures, mocking, parametrization, and markers.

Tags

Updated: 2026-09-15
pytestpythontestingmockingfixtures

Capabilities

Write pytest test structuresCreate pytest fixturesMock dependencies with patchParametrize test cases

Typical Inputs

Python source codeTest specifications

Typical Outputs

Pytest test codePytest CLI commands

What this skill does

  • Write pytest test structures
  • Create pytest fixtures
  • Mock dependencies with patch
  • Parametrize test cases
  • Apply pytest markers
  • Write async pytest tests

Inputs

  • Python source code
  • Test specifications

Outputs

  • Pytest test code
  • Pytest CLI commands

Requirements

  • Python environment
  • pytest package

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.