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.

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.

Key capabilities

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

Technical details

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 -

Explore related resources

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
28 days ago
Repository age
7 years
License
NOASSERTION

Auto-fetched from GitHub.

Similar to pytest