AgentStack
SKILL verified MIT Self-run

Python Testing

skill-caraya-agent-skills-python-testing · by caraya

Python testing skill for test structure, pytest best practices, and coverage validation. Trigger phrases: Python tests, pytest, unittest, test fixtures, test parameterization, coverage, mock objects, test discovery.

No reviews yet
0 installs
7 views
0.0% view→install

Install

$ agentstack add skill-caraya-agent-skills-python-testing

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Python Testing? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Python Testing

Use this SKILL for pytest/unittest setup, fixture design, parameterization, and diagnosing test isolation or coverage issues.

Recommended tools:

  • pytest (fixtures, plugins, simple syntax)
  • unittest (stdlib-only projects)
  • coverage.py / pytest-cov for coverage

Checklist

  • Descriptive test names and independent tests
  • Appropriate fixture scopes to avoid pollution
  • Parameterize repetitive checks
  • Mock external dependencies and assert calls precisely

Templates & Examples

Example pytest test:

def test_add():
    assert add(1, 2) == 3

Conftest snippet (fixture):

import pytest

@pytest.fixture
def db(tmp_path):
    # setup
    yield db_conn
    # teardown

Coverage/issue CSV header:

File,TestName,IssueType,SuggestedFix app/auth.py,testauthflow,Missing branch coverage,Add tests for invalid tokens and expired sessions

Output requirements

  • For each finding provide: file and line, coverage or isolation risk, why it matters, minimal fix with code example.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.