All
Articles 132,393Blog Posts 137,072Tech Tutorials 34,304Research Papers 25,931News 18,744
⚡ AI Lessons
![[Python] How to implement a transactional decorator in FastAPI + SQLAlchemy - with reviewing other approaches](https://media2.dev.to/dynamic/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxrky4aja975vf8oiua2z.png)
Dev.to · UponTheSky
🔧 Backend Engineering
⚡ AI Lesson
3y ago
[Python] How to implement a transactional decorator in FastAPI + SQLAlchemy - with reviewing other approaches
Introduction I would say that more than 80% of the code of a backend application is...
![[Python] A simple guide: how to mock dependencies for unit testing in FastAPI?](https://media2.dev.to/dynamic/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fj3yu4jvikbu625only.png)
Dev.to · UponTheSky
🔧 Backend Engineering
⚡ AI Lesson
3y ago
[Python] A simple guide: how to mock dependencies for unit testing in FastAPI?
TL; DR Use dependency_overrides dictionary to override the dependencies set up. The...
DeepCamp AI