Files
prompts/.github/instructions/pytesting.instructions.md
T

1.1 KiB

name, description, applyTo
name description applyTo
Pytest Scaffolding Guidance Use when working under tests/. Route test edits to pytesting guidance and never create or expand tests unless the user explicitly asks. tests/**

When editing files under tests/, use skill://pytesting/SKILL.md as the primary guidance source for test scaffolding and pytest authoring decisions.

Hard rule:

  • Do not create new test files, test cases, or test scaffolding unless the user explicitly asks for tests in the current request.
  • If tests could help but were not requested, mention them as an optional next step instead of adding them.

Execution pattern:

  1. Load skill://pytesting/SKILL.md first.
  2. Inspect skill://pytesting/_manifest only when a supporting reference is needed.
  3. Apply only the portions relevant to the file being edited.
  4. Keep tests focused, deterministic, and aligned with repository conventions.
  5. Include source-document links for any feature-level recommendation.

If task intent is ambiguous, ask one clarifying question before editing.

Be sure to also refer to the testing page for design detail.