FastAPI-template icon indicating copy to clipboard operation
FastAPI-template copied to clipboard

Default generated dummy tests require database but github action provided do not run database

Open m4hi2 opened this issue 2 months ago • 1 comments

The project should either provide test cases with mocked DAO or run the database in GitHub Actions. I prefer providing mocked tests. This will serve as an example of how to write mocked tests.

m4hi2 avatar Oct 02 '25 01:10 m4hi2

Mocked tests are generally a bad idea. Because you want to be sure that everything you write will run on an actual database. Sometimes databases might behave not as you would expect.

s3rius avatar Nov 28 '25 00:11 s3rius