pytest-workflow

Pytest verification workflow for Python changes with deterministic fixtures, explicit case strategy, and CI-ready evidence. Use when Python modules need executable pytest evidence before merge; do not use for browser-level E2E or non-Python test tooling decisions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pytest-workflow" with this command: npx skills add kentoshimizu/sw-agent-skills/kentoshimizu-sw-agent-skills-pytest-workflow

Pytest Workflow

Overview

Use this skill to design pytest suites that are fast enough for daily feedback and stable enough for CI gates.

Scope Boundaries

  • Use this skill when the task matches the trigger condition described in description.
  • Do not use this skill when the primary task falls outside this skill's domain.

Shared References

  • Trigger examples:
    • references/trigger-and-examples.md
  • Fixture boundary rules:
    • references/fixture-boundary-rules.md
  • Determinism rules:
    • references/pytest-determinism-rules.md

Templates And Assets

  • Test plan template:
    • assets/pytest-test-plan-template.md
  • Fixture stability checklist:
    • assets/pytest-fixture-stability-checklist.md
  • Command profile template:
    • assets/pytest-command-profile-template.md

Inputs To Gather

  • Python modules and behaviors at risk.
  • Fixture graph, dependency seams, and isolation constraints.
  • Marker strategy and CI runtime/cost limits.
  • Known flaky paths (async timing, shared state, environment coupling).

Deliverables

  • Pytest test strategy and case matrix.
  • Fixture and parametrization policy.
  • Local-fast and CI-full command profiles.
  • Residual risk and follow-up actions.

Workflow

  1. Build case strategy with assets/pytest-test-plan-template.md.
  2. Apply fixture rules from references/fixture-boundary-rules.md.
  3. Validate determinism using references/pytest-determinism-rules.md.
  4. Define execution profiles in assets/pytest-command-profile-template.md.
  5. Finalize with assets/pytest-fixture-stability-checklist.md.

Quality Standard

  • Fixtures are explicit, scoped, and deterministic.
  • Case coverage includes happy/edge/failure paths.
  • Command profiles are reproducible across local and CI.

Failure Conditions

  • Stop when fixture design causes hidden shared state behavior.
  • Stop when test determinism cannot be achieved for critical flows.
  • Escalate when runtime cost blocks practical feedback loops.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

github-codeowners-management

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

django-app-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python-style-guide

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

fastapi-service-development

No summary provided by upstream source.

Repository SourceNeeds Review