Favicon of pytest

pytest Skill

AI Agent SkillPythonOpen source

Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins. Published by microsoft in debugpy.

Decision snapshot

Is this a fit?

Best for

Testing, Data analysis, Writing, Includes SKILL.md

Works with

Compatibility not yet detected.

Access

Permission behavior not yet detected.

Setup

Copy skill directory

Project health

3 months ago · NOASSERTION license

Considerations

No specific cautions were detected. Review the source and requested permissions before installing.

What is pytest Skill?

Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins. Published by microsoft in debugpy. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
84/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement. See how SkillIndex evaluates profiles.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Testing
  • Data analysis
  • Writing
  • Testing use cases
  • Data analysis use cases

Declared skill metadata

  • Source file: .claude/skills/pytest/SKILL.md

These fields retain source and confidence evidence from the indexed SKILL.md.

Compatibility and setup

Copy skill directory
  • Install or run with Copy skill directory

When to use pytest Skill

  • Use it for testing.
  • Use it for data analysis.
  • Use it for writing.

Built with

PythonCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/debugpy
  • Skill file: .claude/skills/pytest/SKILL.md

What it does

Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.

Skill instructions

Skill: pytest Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins. When to Use Apply this skill when writing and organizing tests with pytest — fixtures, parametrize, markers, plugins, and test structure. Test Organization - Place tests in a tests/ directory mirroring the source structure. - Name test files test<module.py and test functions test<behavior(). - Group related tests in classes only when they share fixtures/setup. Fixtures - Define fixtures at the narrowest scope needed (function class module session). - Use conftest.py for shared fixtures; put it at the appropriate directory level. - Prefer factory fixtures over complex fixture inheritance. - Use yield fixtures for setup/teardown; prefer tmppath over tempfile. Parametrize - Use @pytest.mark.parametrize for data-driven tests with multiple inputs. - Give test IDs (ids=...) for readable test output. - Combine parametrize with fixtures for cross-product testing. Assertions -

Verified compatibility and discovery

Frequently asked questions

What is pytest?

pytest is a open-source AI agent skill with Copy skill directory. Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.

Who is pytest best for?

pytest is best for reusing agent instructions, scripts, and references, testing workflows, data analysis workflows, writing workflows.

How do I install pytest?

Install or run pytest using Copy skill directory. Check pytest for the latest setup command.

Is pytest actively maintained?

pytest may need a closer maintenance check before production use.

Share:

Stars
2,436
Forks
197
Last commit
3 months ago
Last verified
Aug 26, 2026
Metadata fetched
Aug 26, 2026
Repository age
7 years
License
NOASSERTION

Project health auto-fetched from the source repository.

Maintain this resource?

Review this source-backed profile, send a correction with evidence, or link to it from your documentation. Claims verify your relationship to the project; profile facts still require source evidence and editorial review.

Alternatives to pytest