fastapi-sqlmodel-alembic icon indicating copy to clipboard operation
fastapi-sqlmodel-alembic copied to clipboard

Tests

Open mtucker502 opened this issue 2 years ago • 1 comments

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?

mtucker502 avatar May 18 '22 14:05 mtucker502

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

mjhea0 avatar May 19 '22 11:05 mjhea0