factory-boy recipes
2 tested factory-boy integration recipes with Django, pytest-django, pytest, SQLAlchemy. Exact pinned versions and a last-passed receipt, last run 2026-10-15.
passed6/6python
Django models with factory_boy and pytest-django db fixtures
Django models built with factory_boy DjangoModelFactory (SubFactory, get_or_create, traits) and tested offline on in-memory SQLite with pytest-django database access rules and on_commit capture.
django@6.1.2factory-boy@3.3.3pytest-django@4.14.0
last passed 2026-10-15 14:11 UTC
passed3/3python
pytest fixtures + factory_boy with SQLAlchemy 2 sessions
Transactional pytest fixtures that roll back per test, plus factory_boy SQLAlchemy factories with sequences, SubFactory and traits.
sqlalchemy@2.1.4factory-boy@3.3.3pytest@9.1.1
last passed 2026-10-15 14:16 UTC