python-testing SKILL.md skillA

python-testing from noesisvision/nasde-toolkit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add noesisvision/nasde-toolkit/python-testing@git:20260323.75e7119

Pins git:20260323.75e7119 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
noesisvision/nasde-toolkit
Path
examples/nasde-dev-skill/variants/claude-nasde-dev-with-testing/skills/python-testing/SKILL.md
Versions recorded
1
Latest version
git:20260323.75e7119, committed Mar 23, 2026
Size
18,862 bytes
Repository stars
14
License
MIT

Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Python Testing Patterns

Comprehensive testing strategies for Python applications using pytest, TDD methodology, and best practices.

## When to Activate

- Writing new Python code (follow TDD: red, green, refactor)
- Designing test suites for Python projects
- Reviewing Python test coverage
- Setting up testing infrastructure

## Core Testing Philosophy

### Test-Driven Development (TDD)

Always follow the TDD cycle:

1. **RED**: Write a failing test for the desired behavior
2. **GREEN**: Write minimal code to make the test pass
3. **REFACTOR**: Improve code while keeping tests green

```python
# Step 1: Write failing test (RED)
def test_add_numbers():
    result = add(2, 3)
    assert result == 5

# Step 2: Write minimal implementation (GREEN)
def add(a, b):
    return a + b

# Step 3: Refactor if needed (REFACTOR)
```

### Coverage Requirements

- **Target**: 80%+ code coverage
- **Critical paths**: 100% coverage required
- Use `pytest --cov` to measure coverage

```bash
pytest --cov=mypackage --cov-report=term-missing --cov-report=html
```

## pytest Fundamentals

### Basic Test Structure

```python
import pytest

def test_addition():
    """Test basic addition."""
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add noesisvision/nasde-toolkit/python-testing@sha256:b304a8c503af3264

The line at the top of this page pins the label git:20260323.75e7119, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_c3gvpna5d3zgfwma.svg)](https://markdownregistry.com/a/art_c3gvpna5d3zgfwma)

7 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 23, 2026.

versioncommittedcommitsizeaudit
git:20260323.75e7119 latest2026-03-23 75e7119 18,862 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (18862 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

noesisvision/nasde-toolkit · 14 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_c3gvpna5d3zgfwma
GET https://markdownregistry.com/api/v1/resolve?ref=noesisvision/nasde-toolkit/python-testing
GET https://markdownregistry.com/api/v1/blob/b304a8c503af32644f97a889c5545ee4f90e91980462ad4ce33fee3dea6f414f

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from noesisvision/nasde-toolkit

nasde-benchmark-calibration SKILL.md skill
noesisvision/nasde-toolkit · .claude/skills/nasde-benchmark-calibration/SKILL.md · Calibrate assessment rubrics by reviewing agent work in GitHub/GitLab PRs and feeding human comments back into the…
git:20260724.52efb3a · audit A · 14 stars
nasde-benchmark-creator SKILL.md skill
noesisvision/nasde-toolkit · .claude/skills/nasde-benchmark-creator/SKILL.md · Create coding agent benchmarks for evaluation with nasde. Use this skill when the user wants to: - Create a new…
git:20261015.c277e21 · audit A · 14 stars
nasde-benchmark-from-history SKILL.md skill
noesisvision/nasde-toolkit · .claude/skills/nasde-benchmark-from-history/SKILL.md · Generate benchmark tasks from git history of the current or specified repository. Use this skill when the user wants…
git:20260509.2419536 · audit A · 14 stars
nasde-benchmark-from-public-repos SKILL.md skill
noesisvision/nasde-toolkit · .claude/skills/nasde-benchmark-from-public-repos/SKILL.md · Build diverse benchmark task suites from public GitHub repositories for testing universal skills. Use this skill when…
git:20260509.2419536 · audit A · 14 stars
nasde-benchmark-runner SKILL.md skill
noesisvision/nasde-toolkit · .claude/skills/nasde-benchmark-runner/SKILL.md · Run coding agent benchmarks and verify results with nasde. Use this skill when the user wants to: - Run a benchmark…
git:20261015.c277e21 · audit A · 14 stars
nasde-dev SKILL.md skill
noesisvision/nasde-toolkit · .claude/skills/nasde-dev/SKILL.md · Internal skill for developing and maintaining nasde-toolkit itself. Use this skill when: - Making changes to…
git:20260624.4d96bf0 · audit A · 14 stars
CLAUDE.md CLAUDE.md file
noesisvision/nasde-toolkit · CLAUDE.md
git:20261015.c277e21 · audit A · 14 stars
code-review SKILL.md skill
noesisvision/nasde-toolkit · examples/ddd-architectural-challenges/evaluator_skills/code-review/SKILL.md · Use when reviewing AI-generated code for architectural quality, design patterns, and engineering practices
git:20260323.e04a7ea · audit A · 14 stars
CLAUDE.md@examples/ddd-architectural-challenges/variants/claude-deeper-hint CLAUDE.md file
noesisvision/nasde-toolkit · examples/ddd-architectural-challenges/variants/claude-deeper-hint/CLAUDE.md
git:20260724.52efb3a · audit A · 14 stars
CLAUDE.md@examples/ddd-architectural-challenges/variants/claude-guided CLAUDE.md file
noesisvision/nasde-toolkit · examples/ddd-architectural-challenges/variants/claude-guided/CLAUDE.md
git:20260323.c2b3129 · audit A · 14 stars
CLAUDE.md@examples/ddd-architectural-challenges/variants/claude-ntcoding-tactical-ddd-anemic-tuned CLAUDE.md file
noesisvision/nasde-toolkit · examples/ddd-architectural-challenges/variants/claude-ntcoding-tactical-ddd-anemic-tuned/CLAUDE.md
git:20260526.5a7076b · audit A · 14 stars
tactical-ddd SKILL.md skill
noesisvision/nasde-toolkit · examples/ddd-architectural-challenges/variants/claude-ntcoding-tactical-ddd-anemic-tuned/skills/tactical-ddd/SKILL.md · Design, refactor, analyze, and review code by applying the principles and patterns of tactical domain-driven design…
v1.0.0 · audit A · 14 stars

Every file in noesisvision/nasde-toolkit

Other files named python-testing

python-testing SKILL.md skill
affaan-m/ecc · .kiro/skills/python-testing/SKILL.md · Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async…
git:20260330.866d9eb · audit A · 299,696 stars
python-testing SKILL.md skill
affaan-m/ecc · docs/es/skills/python-testing/SKILL.md · Estrategias de pruebas Python usando pytest, metodología TDD, fixtures, mocking, parametrización y requisitos de…
git:20260607.ac0f11c · audit A · 299,696 stars
python-testing SKILL.md skill
athola/claude-night-market · plugins/parseltongue/skills/python-testing/SKILL.md · Python testing patterns with pytest, fixtures, TDD, mocking, async and integration tests. Use when writing or auditing…
git:20260902.4a35d69 · audit A · 348 stars
python-testing SKILL.md skill
mindrally/skills · python-testing/SKILL.md · Expert in Python testing with pytest and test-driven development
git:20261008.7682ca7 · audit A · 301 stars
python-testing SKILL.md skill
noesisvision/nasde-toolkit · examples/nasde-dev-skill/variants/claude-nasde-dev-full-stack/skills/python-testing/SKILL.md · Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.
git:20260323.75e7119 · audit A · 14 stars
python-testing SKILL.md skill
dmitriyyukhanov/claude-plugins · plugins/python-dev/skills/python-testing/SKILL.md · Python testing patterns with pytest including unit tests, integration tests, fixtures, mocking, and coverage. Use when…
git:20260310.7891929 · audit A · 8 stars
python-testing SKILL.md skill
dmitriyyukhanov/agent-plugins · plugins/python-dev/skills/python-testing/SKILL.md · Python testing patterns with pytest including unit tests, integration tests, fixtures, mocking, and coverage. Use when…
git:20260310.7891929 · audit A · 8 stars
python-testing SKILL.md skill
jartan-llc/grimoire · plugins/pythonica/skills/python-testing/SKILL.md · Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.
git:20260807.010f635 · audit A · 3 stars

Browse by kind, by grade A, or by owner.