Notes from pytest with eric

This is a collection of notes from pytest with eric.

Take a look here: https://pytest-with-eric.com/

Basic concepts

Running tests

Mocking

Configuration & Environment Variables

Markers

Ultimate Guide To Pytest Markers And Good Test Management

  • common markers, what they are, the most common ones

Property Based Testing

How to Use Hypothesis and Pytest for Robust Property-Based Testing in Python

  • a new way to generate test cases, based on properties / property-based

Async Testing

A Practical Guide To Async Testing With Pytest-Asyncio

  • just use the proper fixture for async tasks

FastAPI // TODO

https://pytest-with-eric.com/pytest-advanced/pytest-django-restapi-testing/

  • a practical hands-on, not much to say

External/3rd Party API Call Testing

Database Testing

How To Test Database Transactions With Pytest And SQLModel

  • we can use pytest for manual creating objects and test with sqalchemy if it’s what we need

Web Automation Testing

CI/CD Pipelines

Plugins and Integrations

Coverage

BDD (Behavior-Driven Development)

TDD (Test-Driven Development)

Hooks

Testing CLI Applications

Misc

Comparisons