The usual first attempt at testing a FastAPI route reaches for patch : with patch ( " myapp. routes. get_db " ) as mock_db : response = client .
Source: [Dev.to](https://dev.to/msakai/test-your-fastapi-routes-without-touching-the-database-gi6)
1 points, 0 comments on Hacker News
1 points, 0 comments on Hacker News
1 points, 0 comments on Hacker News
1 points, 0 comments on Hacker News
2 points, 0 comments on Hacker News
1 points, 0 comments on Hacker News