Pytest with Eric

Learn to write production level Python Unit Tests with Pytest

Welcome to Pytest with Eric!

Learn to write simple but effective tests with Pytest.

From basics to advanced topics with simple, but detailed explanations and example code. Explore the topics below or on the sidebar to get started.

Getting Started

Basic Concepts

Running Tests

Fixtures

Parametrization

Mocking

Configuration & Environment Variables

Markers

Property Based Testing

Async Testing

Flask Testing

FastAPI Testing

Django Testing

External API Testing

Database Testing

Web Automation Testing

Pytest Errors and Debugging

CI/CD Pipelines

Plugins and Integrations

Coverage

BDD (Behavior-Driven Development)

TDD (Test-Driven Development)

Hooks

Testing CLI Applications

Testing AWS Services

Misc

Best Practices

Comparisons

0%