Testing

A shop ledger page, 1899. Every line adds up.
Testing Async FastAPI With SQLAlchemy and pytest
Set up pytest-asyncio, dependency overrides and per-test transaction rollback so async FastAPI and SQLAlchemy tests stay isolated and avoid event loop errors.
4 min read
Celery Serialization Pitfalls and How task_always_eager Hides Bugs in CI
Tests pass with eager Celery but tasks fail in production on serialization. Learn why, pass IDs instead of objects, and test closer to real behavior.
4 min read