Boost your experience with the power of microlearning with Dev Shorts.
What is this?
Sharing only real experience and real-world solutions to create the most authentic and real software engineers community. DevShorts is an open and free X community to share real-world solutions and best practices.
Some Snack Posts:
I was looking for a solution to mock pymongo opeartions in FastAPI to write unit tests.
— Rashid (@thedevtimeline) March 9, 2024
I found "mongomock" and "mongomock-motor" packages which works best for writing tests and mock db operations.