Agent skill · Testing & QA

pytest-skill

Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions "pytest", "conftest", "@pytest.fixture", "@pytest.mark", "Python test". Triggers on: "pytest", "conftest", "Python test", "parametrize", "Python...

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill pytest-skill --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/pytest-skill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Pytest Testing Skill ## When to Use Use this skill when you need generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions "pytest", "conftest", "@pytest.fixture", "@pytest.mark", "Python test". Triggers on: "pytest", "conftest", "Python test", "parametrize", "Python... ## Core Patterns ### Basic Test ```python import pytest def test_addition(): assert 2 + 3 == 5 def test_exception(): with pytest.raises(ValueError, match="invalid"): int("not_a_number") class TestCalculator: def test_add(self): calc = Calculator() assert calc.add(2, 3) == 5 def test_divide_by_zero(self): with pytest.raises(ZeroDivisionError): Calculator().divide(10, 0) ``` ### Fixtures ```python @pytest.fixture def calculator(): return Calculator() @pytest.fixture def db_connection(): conn = Database.connect("test_db") yield conn # teardown after yield conn.rollback() conn.close() @pytest.fixture(scope="module") def api_client(): client = APIClient(base_url="http://localhost:8000") yield client client.logout() # conftest.py - shared fixtures @pytest.fixture(autouse=True) def reset_state(): State.reset() yield State.cleanup() # Usag

What's inside
Steps it walks through
  1. When to Use
  2. Core Patterns
  3. Basic Test
  4. Fixtures
  5. Parametrize
  6. Markers
  7. Mocking
  8. Assertions
  9. Anti-Patterns
  10. Quick Reference
  11. pyproject.toml
  12. Deep Patterns
  13. Limitations
Ships with 1 file
  • reference/playbook.md
More from agentic-awesome-skills
All skills →
About this skill
What does the pytest-skill skill do?

Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions "pytest", "conftest", "@pytest.fixture", "@pytest.mark", "Python test". Triggers on: "pytest", "conftest", "Python test", "parametrize", "Python...

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill pytest-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going