testing-strategy

testing-strategy is a skill for Claude Code from oborchers/fractional-cto. It costs 104 tokens per session (2,697 once invoked), scanned A, original, MIT.

A guide to testing Python packages with pytest, a tool for running Python tests. It covers test organisation, fixtures, parameterised tests, coverage, asynchronous code, property-based testing, and continuous integration test matrices.

In plain words
What is it for?
Use it when configuring pytest, writing tests and fixtures, measuring coverage, testing asynchronous code, or deciding how tests should run in CI.
Why use it?
It helps catch regressions and configuration mistakes that can otherwise remain hidden as a project changes. It also gives a structure for testing behaviour consistently rather than relying only on manual checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the python-package plugin — 13 skills, 2 commands, 1 agent shipped together

Good fit Use it when configuring pytest, writing tests and fixtures, measuring coverage, testing asynchronous code, or deciding how tests should run in CI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oborchers/fractional-cto/testing-strategy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add oborchers/fractional-cto --skill testing-strategy
Clone the repo
git clone --depth 1 https://github.com/oborchers/fractional-cto

Made for: Claude Code.

Or install python-package, the plugin that ships this one along with the rest of its 13 skills, 2 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/oborchers/fractional-cto/testing-strategy/github.svg)](https://agentmods.dev/skills/oborchers/fractional-cto/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/testing-strategy"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/testing-strategy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/testing-strategy"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.02697
Opus 5.5 $0.00042 $0.01079
Sonnet 5.5 $0.00021 $0.00539
Haiku 4.5 $0.00010 $0.00270

Measured 3d ago against content hash 47c8a909fe01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing-strategy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

python-package/skills/testing-strategy/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Configure pytest Strictly, Test Behavior Not Implementation

Every serious Python package -- attrs, httpx, Pydantic, FastAPI, Rich -- shares the same pytest configuration philosophy: strict by default, warnings as errors, no silent regressions. Without strict settings, typos in markers go unnoticed, deprecated upstream APIs break you without warning, and xfail tests silently pass for months hiding fixed bugs that never get their markers removed.

Testing strategy failures are quiet. Coverage regresses 1% at a time. A missing --strict-markers lets @pytest.mark.solw pass silently. filterwarnings without "error" lets upstream deprecation warnings accumulate until a dependency update breaks everything at once. The configuration below prevents all of this.

Pytest Configuration

These settings are non-negotiable. They appear in every major package's pyproject.toml:

[tool.pytest.ini_options]
testpaths = ["tests"]
xfail_strict = true
filterwarnings = ["error"]
addopts = ["--strict-markers", "--strict-config", "-ra"]
markers = [
    "slow: marks tests as slow (deselect with '-m \"not slow\"')",
    "network: marks tests that require network access",
    "integration: marks integration tests requiring external services",
]
Setting What It Prevents
testpaths = ["tests"] Scanning src/, docs/, node_modules/ -- faster collection
xfail_strict = true Unexpectedly passing xfail silently succeeding instead of failing
filterwarnings = ["error"] Missing upstream DeprecationWarning until it breaks you
--strict-markers Typos like @pytest.mark.solw passing without error
--strict-config Typos like filterwarning (missing 's') being silently ignored
-ra Forgetting to check which tests were skipped or xfailed

Add targeted warning ignores only for known upstream issues you cannot control:

filterwarnings = [
    "error",
    "ignore::DeprecationWarning:some_dependency.*",
]

Read the full file on GitHub · 271 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 271 lines · 104 tokens per session scan A 47c8a909fe01

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository oborchers/fractional-cto (32 stars, last pushed 3d ago), licensed MIT. It adds 104 tokens to every session and 2,697 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.