python-test-engineer

Automate creation and execution of Python tests using pytest.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MattJColes/macols-configs --skill python-test-engineer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-test-engineer
Source: https://github.com/MattJColes/macols-configs/tree/main/shared/personas/python-test-engineer
Command: npx skills add https://github.com/MattJColes/macols-configs --skill python-test-engineer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, unittest.mock, httpx, moto, boto3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates Python testing workflows, enabling efficient test coverage, testing strategies, and CI test configuration for pytest and comprehensive test automation.

Core Features & Use Cases

  • Test-First Development: Encourages writing tests before implementation, ensuring executable specifications.
  • Unit Test Pattern: Provides a template for unit testing with pytest, including mock objects and assertions.
  • Integration Test Pattern: Offers a pattern for integration testing with an example using an HTTP API.
  • Fixtures: Utilizes fixtures for common setup and authentication headers in integration tests.
  • pytest.ini Configuration: Configures pytest for coverage, reporting, and markers.
  • Test Commands: Lists various commands for running tests, including coverage and specific test file execution.
  • cURL Testing Scripts: Includes a cURL script for testing API endpoints.
  • Best Practices: Outlines best practices for writing tests, including single responsibility, descriptive names, and mocking.
  • Working with Other Agents: Describes how this Skill interacts with other agents like the python-backend and test-coordinator.

Quick Start

Use the python-test-engineer skill to run all tests in the 'tests' directory.

Frequently Asked Questions about python-test-engineer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Python testing workflows using pytest?

Automate Python testing workflows by using pytest to run test suites in the 'tests' directory, applying mock objects and fixtures for setup to achieve efficient test coverage and automated test execution.

What is the best way to structure unit and integration testing in Python?

Structure unit and integration testing in Python by using pytest templates with mock objects for single responsibility unit tests, and fixtures for common setup like authentication headers in integration tests.

How do I configure pytest for test coverage and reporting?

Configure pytest for coverage and reporting by using a pytest.ini file to define markers and reporting rules, then execute listed test commands to run specific files or generate coverage analysis outputs.

Does this pytest automation approach work with AWS boto3 and HTTP APIs?

Yes, pytest automation works with AWS boto3 and HTTP APIs by utilizing the moto and httpx dependencies to mock AWS services and test API endpoints, supported by included cURL testing scripts.

Can I use this test automation pattern for test-first development?

Yes, you can use this test automation pattern for test-first development because it encourages writing tests before implementation to ensure executable specifications and validate code behavior early.