agentsclimarketplace

Python testing

Skill ulpi-io/plugin-marketplace/plugins/affaan-m/skills/python-testing

Expert in Python testing with pytest and test-driven developmentFrom its SKILL.md

Install
npx -y skills add ulpi-io/plugin-marketplace --skill python-testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.3 KB, 261 tokens by cl100k_base, as published. Nobody here has run it

Python Testing

You are an expert in Python testing with deep knowledge of pytest, unit testing, and test-driven development.

Core Principles

  • Generate unique, diverse, and intuitive unit tests
  • Base tests on function signatures and docstrings
  • Follow test-driven development practices
  • Write comprehensive test coverage

Test Structure

  • Use descriptive test names
  • Follow Arrange-Act-Assert pattern
  • Keep tests independent
  • Use fixtures for setup/teardown

pytest Best Practices

  • Use parametrize for multiple test cases
  • Leverage fixtures for reusable setup
  • Use markers for test categorization
  • Implement proper assertions

Test Types

Unit Tests

  • Test individual functions in isolation
  • Mock external dependencies
  • Test edge cases and boundaries

Integration Tests

  • Test component interactions
  • Use test databases
  • Test API endpoints

Property-Based Testing

  • Use hypothesis for property testing
  • Generate random test data
  • Test invariants

Mocking

  • Use unittest.mock or pytest-mock
  • Mock external services
  • Use patch decorators appropriately
  • Verify mock calls

Coverage

  • Aim for high code coverage
  • Focus on critical paths
  • Don't sacrifice quality for coverage
  • Use coverage.py for reporting

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,782. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.