The default approach involves using TestClient. However, I found that mocking the database, background tasks, etc., is overkill. Do you have any suggestions?
The default approach involves using TestClient. However, I found that mocking the database, background tasks, etc., is overkill. Do you have any suggestions?
@lemmy.ml
News and discussions about the programming language Python
go to feed...
@lemmy.ml
News and discussions about the programming language Python
go to feed...
If you don't want to test the round trip, have your fastapi routes call some other function and test just that function.
save