pytest-run-tests-integration

pytest-run-tests-integration is a cursor rule for Cursor from dfirtnt/Huntable-CTI-Studio. It costs 457 tokens per session, scanned A, original, MIT.

A project rule requiring ongoing Python tests written with pytest to run through the shared `run_tests.py` command.

In plain words
What is it for?
Use it when adding pytest tests so they are placed under `tests/`, assigned to an existing category such as unit or integration, and included in the normal test commands.
Why use it?
It prevents tests from becoming hidden one-off files that the team forgets to run.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding pytest tests so they are placed under tests/, assigned to an existing category such as unit or integration, and included in the normal test commands.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration
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.

Clone the repo
git clone --depth 1 https://github.com/dfirtnt/Huntable-CTI-Studio

Made for: Cursor.

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 pytest-run-tests-integration

README.md
[![agentmods](https://agentmods.dev/badge/rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration/github.svg)](https://agentmods.dev/rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration)
Your own site
<a href="https://agentmods.dev/rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration"><img src="https://agentmods.dev/badge/rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration/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 pytest-run-tests-integration

Your own site · 80×15
<a href="https://agentmods.dev/rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration"><img src="https://agentmods.dev/badge/rules/dfirtnt/huntable-cti-studio/pytest-run-tests-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 457 This file is loaded in full into every session.
When invoked 457 The same file — it is already loaded in full.
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.00457 $0.00457
Opus 5 $0.00229 $0.00229
Sonnet 5 $0.00091 $0.00091
Haiku 4.5 $0.00046 $0.00046

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

Security

Grade A, and why

pytest-run-tests-integration 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 10d 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.

.cursor/rules/pytest-run-tests-integration.mdc · 28 lines

What it actually says

Pytest — run_tests.py Integration

Rule

All pytest tests built for ongoing use in this project MUST be integrated into the ./run_tests.py wrapper. Tests must be discoverable and executable via one of the runner’s categories or markers—not only via raw pytest invocations.

What “integrated” means

  • Discovery: Tests live under tests/ and are selected by an existing run_tests.py category (e.g. smoke, unit, api, integration, ui) or by a marker category (e.g. regression, contract, security, a11y) that run_tests.py already supports.
  • Execution: A full run of the relevant category (e.g. python3 run_tests.py unit or python3 run_tests.py regression --paths tests/quality/...) includes the new tests.
  • No orphan tests: Do not add pytest files that are only meant to be run manually with pytest path/to/file.py or custom one-off commands, unless they are explicitly one-off/throwaway (e.g. spike scripts). Ongoing tests belong in the wrapper.

When adding new tests

  1. Place tests under tests/ in the appropriate subtree (e.g. tests/api/, tests/unit/, tests/quality/).
  2. Use the markers/paths already used by run_tests.py so the new tests are included when that category is run (path-based discovery is the norm; only add run_tests.py changes if a new category or marker is required).
  3. If introducing a new category or marker, update run_tests.py (e.g. RunTestType, _build_pytest_command, subparser) so the new tests are runnable via e.g. python3 run_tests.py <category>.

Summary

  • Ongoing pytest tests → must be runnable via run_tests.py.
  • One-off / spike scripts may stay outside the wrapper if clearly marked as such.
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. 10d ago First seen · 28 lines · 457 tokens per session scan A da12b35ce4c1

Subscribe to this mod's changes

pytest-run-tests-integration is a cursor rule published in the GitHub repository dfirtnt/Huntable-CTI-Studio (11 stars, last pushed 2d ago), licensed MIT. It adds 457 tokens to every session, about $0.0023 per session on Opus 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-30.