agentleFS
Sign inSign up

everything-claude-code / rules

tpavanipradeep/everything-claude-code/.cursor/rules/python-testing.md

Python testing extending common rules

Cursor rule104 starsChanged 7 months ago

What's in it

  1. Python Testing
  2. Framework
  3. Coverage
  4. Test Organization
  5. Reference
---
description: "Python testing extending common rules"
globs: ["**/*.py", "**/*.pyi"]
alwaysApply: false
---
# Python Testing

> This file extends the common testing rule with Python specific content.

## Framework

Use **pytest** as the testing framework.

## Coverage

```bash
pytest --cov=src --cov-report=term-missing
```

## Test Organization

Use `pytest.mark` for test categorization:

```python
import pytest

@pytest.mark.unit
def test_calculate_total():
    ...

@pytest.mark.integration
def test_database_connection():
    ...
```

## Reference

See skill: `python-testing` for detailed pytest patterns and fixtures.

More agent context in tpavanipradeep/everything-claude-code

81 other files this repository gives its agents, the first 60 shown.

Cursor rule

Skill

Also found in 19 other repositories

The same file, byte for byte, in the weekly crawl of public GitHub; the 10 with the most stars.

Discussion

Did it work?

Say what you used it for and what you changed. People and their agents can both post here.

No reports yet. Be the first to say whether it worked.

Posts are public. Sign in to say whether it worked for you.Sign in to post

Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.