Borrowing it
Nothing to install: this file belongs to jenreh/appkit-bpmn-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/jenreh/appkit-bpmn-server/main/.github/skills/testing-python-pytest/SKILL.mdgit clone --depth 1 https://github.com/jenreh/appkit-bpmn-serverWrote 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.
[](https://agentmods.dev/skills/jenreh/appkit-bpmn-server/testing-python-pytest)<a href="https://agentmods.dev/skills/jenreh/appkit-bpmn-server/testing-python-pytest"><img src="https://agentmods.dev/badge/skills/jenreh/appkit-bpmn-server/testing-python-pytest/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.
<a href="https://agentmods.dev/skills/jenreh/appkit-bpmn-server/testing-python-pytest"><img src="https://agentmods.dev/badge/skills/jenreh/appkit-bpmn-server/testing-python-pytest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00124 | $0.01470 |
| Opus 5.5 | $0.00050 | $0.00588 |
| Sonnet 5.5 | $0.00025 | $0.00294 |
| Haiku 4.5 | $0.00012 | $0.00147 |
Grade A, and why
testing-python-pytest 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python pytest Test Suite Generator
Generates comprehensive, production-quality pytest unit test suites that achieve >90% line and branch coverage per file.
Quick start
pip install pytest pytest-cov pytest-mock # Einmalig installieren
python scripts/analyze_module.py src/my_module.py # Modul analysieren
# → Schreibe tests/test_my_module.py (siehe Workflow unten)
python scripts/run_coverage.py src/my_module.py tests/test_my_module.py
Workflow
Kopiere diese Checkliste und hake ab:
Testing Progress:
- [ ] Step 1: Modul analysieren → analyze_module.py
- [ ] Step 2: Testdatei schreiben → AAA, Fixtures, Parametrize, Mocks
- [ ] Step 3: Coverage messen → run_coverage.py
- [ ] Step 4: Lücken schließen → Fehlende Zweige gezielt testen
- [ ] Step 5: ≥90 % bestätigt → Fertig ✓
Step 1 — Modul analysieren
python scripts/analyze_module.py <pfad/zum/modul.py>
Das Script gibt JSON aus mit: Klassen, Methoden, Funktionen, Typ-Hinweisen, Exception-Pfaden, Async-Code und konkreten Testing-Hints.
Step 2 — Testdatei schreiben
Dateiname: tests/test_<modulname>.py
Lese references/PYTEST_PATTERNS.md für
Fixtures, Parametrize, Mocking und Async-Tests.
Struktur jeder Testfunktion — AAA-Pflicht:
def test_<methode>_<szenario>(self, fixture):
# Arrange — Vorbedingungen und Eingaben
input_val = ...
# Act — Aktion unter Test
result = unit_under_test(input_val)
# Assert — Erwartetes Ergebnis prüfen
assert result == expected
Mindestabdeckung pro Einheit:
| Szenario | Pflicht |
|---|---|
| Happy path (Normalfall) | ✓ |
| Grenzwerte (0, -1, leer, None) | ✓ |
Exception-Pfade (pytest.raises) |
✓ je raise im Code |
Alle Bedingungszweige (if/else) |
✓ |
| Externe Abhängigkeiten gemockt | ✓ |
Step 3 & 4 — Coverage messen und Lücken schließen
python scripts/run_coverage.py <modul_pfad> <testdatei_pfad>
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 191 lines · 124 tokens per session scan A df276cfafff3
testing-python-pytest is a skill published in the GitHub repository jenreh/appkit-bpmn-server (0 stars, last pushed 4mo ago), licensed MIT. It adds 124 tokens to every session and 1,470 once invoked, about $0.0005 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-08-31.
Other skills, from other repositories
temporal-python-testing
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.
python-testing
Guidelines for writing and running tests in the Agent Framework Python codebase. Use this when creating, modifying, or running tests.
adk-verify-snippets
Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail report with per-snippet coverage. Use when the user asks to verify, test, or validate the code samples in a README, a guide…
adk-setup
Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test run. Runs only when explicitly requested, never on its own. Use when asked to set up, bootstrap, or repair a development…
test-generator
Generate pytest test cases for Python functions and classes.
typescript
TypeScript strict mode with eslint and jest.