Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

pytest best practices: fixtures, mocks, parametrize v1.0.0

Use this resource to write maintainable pytest tests with fixtures and mocks

New

  • 380 downloads
  • 138 likes
  • 161 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install pytest-testing-practices-2

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent organizes test files and folders, creates fixtures without shared state, parametrizes cases and isolates dependencies with mocks. You get tests that do not depend on execution order.

Mostly picked by

Updated November 2, 2026

Card for the “pytest best practices: fixtures, mocks, parametrize” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/fixtures.md: fixtures and scopes
  • references/mocking.md: mocks and isolation
  • references/parametrization.md: parametrized tests

Good fit for

  • You are adding a Python test suite to an existing project
  • Your tests depend on execution order or shared state

Not for

    Tags

    • pytest
    • tests
    • fixtures
    • mocks

    About

    You say

    “Write unit tests for the billing service, with fixtures and a mock of the payment gateway.”

    Card for the “pytest best practices: fixtures, mocks, parametrize” skill

    Skill published by cfircoo under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write maintainable pytest tests with fixtures and mocks
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/fixtures.md3 KB
    • references/mocking.md3.5 KB
    • references/parametrization.md2.8 KB
    • references/patterns.md5.2 KB
    • SKILL.md2.6 KB

    Origin and licence

    Listed unmodified

    Author
    cfircoo
    Source
    github.com/cfircoo/claude-code-toolkit/tree/d6264305dcd03d2dcd500201f710ba10e312f4e5/skills/pytest-best-practices
    Licence
    MIT

    Notice

    « pytest-best-practices » (cfircoo, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.