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.

Python testing patterns with pytest v1.0.0

Use this resource to write reliable Python tests with pytest and mocks

New

  • 484 downloads
  • 145 likes
  • 134 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install python-pytest-testing-patterns-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 sets up the test structure, writes fixtures and parametrized tests, isolates external dependencies with mocks and measures coverage. You get an organized, readable test suite.

Mostly picked by

Updated November 2, 2026

Card for the “Python testing patterns with pytest” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: setup, fixtures, parametrized tests and configuration
  • references/mocking.md and monkeypatch.md: dependency isolation
  • references/coverage.md and property-based-testing.md: coverage and property-based tests

Good fit for

  • Your Python project has no test suite yet
  • You want integration tests for an API or a database

Not for

    Tags

    • python
    • pytest
    • tests
    • mocks

    About

    You say

    “Write pytest tests for my billing service, mocking the payment API call.”

    Card for the “Python testing patterns with pytest” skill

    Skill published by nickcrew 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 reliable Python tests with pytest and mocks
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/async-testing.md3.6 KB
    • references/best-practices.md8.9 KB
    • references/coverage.md6 KB
    • references/fixtures.md3.1 KB
    • references/integration-testing.md8.2 KB
    • references/mocking.md3.8 KB
    • references/monkeypatch.md4.7 KB
    • references/parametrized-tests.md2.3 KB
    • references/property-based-testing.md5.9 KB
    • references/pytest-fundamentals.md1.7 KB
    • references/test-organization.md6.6 KB
    • SKILL.md6.7 KB
    • validation/rubric.yaml2 KB

    Origin and licence

    Listed unmodified

    Author
    nickcrew
    Source
    github.com/nickcrew/claude-cortex/tree/bb47af79ad3befe01ae01940fcf5f16e30a1b6df/skills/python-testing-patterns
    Licence
    MIT

    Notice

    « python-testing-patterns » (nickcrew, 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.