fastapi-sqlmodel-alembic
fastapi-sqlmodel-alembic copied to clipboard
Tests
Thanks Mike, appreciate the help this repo provided.
One question though: Where are the tests? Isn't this test-driven.io 😂
I read another article you posted (https://testdriven.io/blog/fastapi-crud/) and noticed you use monkey patching to make the tests pass. Is there no way to use pytest + async db/routes without monkeypatching?
Yes, check out the Test-Driven Development with FastAPI and Docker course. You can see the code here: https://github.com/testdrivenio/fastapi-tdd-docker