
Description
python-testing-patterns is an agent skill from the wshobson/agents collection for building thorough, maintainable test suites for Python with pytest. It covers fixtures for setting up test data and state, mocking to replace external dependencies with controlled stand-ins, parameterization to run one test over many inputs, and test-driven development, in which the test is written before the code. The guidance applies to unit, integration, functional and performance tests. Test structure follows the AAA pattern of Arrange, Act and Assert, which keeps each test readable by separating setup, the action being tested and the check. The skill covers writing unit tests, setting up test suites and infrastructure, creating integration tests for APIs and services, mocking external dependencies, testing async code and concurrent operations, and running tests continuously in CI/CD. It also covers property-based testing, which checks that a rule holds across many generated inputs, testing database operations, and debugging failing tests. The skill is meant for developers who want their tests to catch real regressions and to stay easy to change as the code changes. The agent writes and reviews the tests, and the team decides its coverage goals and which parts of the system need the most tests. The skill is installed with the skills CLI from the wshobson/agents repository. Its skills.sh page showed about 35.7K installs and passing results from three security audits at the time of the scan.…
Highlights
- pytest fixtures, mocking and parameterization
- Test-driven development
- AAA pattern for test structure
- Unit, integration, functional and performance tests
- Property-based testing and async tests
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate python-testing-patterns.
People also visit

pytest-coverage
Run pytest with coverage reporting to identify and eliminate untested code lines

temporal-python-testing
Test Temporal workflows with pytest, time-skipping, and mocking strategies

python-pro
Building Python 3.11+ applications requiring type safety, async programming
python-testing-patterns FAQ
Which test framework does it use?
pytest, with fixtures, mocking and parameterization.
What is the AAA pattern?
Arrange, Act, Assert: set up the data, perform the action, then check the result, so each test reads clearly.
Does it cover kinds of tests beyond unit tests?
Yes. Integration, functional and performance tests are covered, along with property-based testing.
Does it support test-driven development?
Yes. The skill covers TDD, in which tests are written before the code.
How do I install it?
Run npx skills add https://github.com/wshobson/agents --skill python-testing-patterns.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best python-testing-patterns alternatives?
Popular alternatives to python-testing-patterns include pytest-coverage, django-tdd and temporal-python-testing. See all python-testing-patterns alternatives




