pytest

Installation
Summary

Fast, scalable Python testing with fixtures, parametrization, and framework integration.

  • Fixture system provides dependency injection and setup/teardown with function, class, module, and session scopes
  • Parametrization enables data-driven tests; markers organize tests by category (unit, integration, slow, custom)
  • Built-in support for FastAPI, Django, and Flask with async/await testing via pytest-asyncio
  • Rich assertion introspection, mocking via pytest-mock, coverage reporting, and parallel execution with pytest-xdist
SKILL.md

pytest - Professional Python Testing

Overview

pytest is the industry-standard Python testing framework, offering powerful features like fixtures, parametrization, markers, plugins, and seamless integration with FastAPI, Django, and Flask. It provides a simple, scalable approach to testing from unit tests to complex integration scenarios.

Key Features:

  • Fixture system for dependency injection
  • Parametrization for data-driven tests
  • Rich assertion introspection (no need for self.assertEqual)
  • Plugin ecosystem (pytest-cov, pytest-asyncio, pytest-mock, pytest-django)
  • Async/await support
  • Parallel test execution with pytest-xdist
  • Test discovery and organization
  • Detailed failure reporting

Installation:

# Basic pytest
Related skills
Installs
899
GitHub Stars
43
First Seen
Jan 23, 2026