-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to override the Rate Limter dependency ? #27
Comments
Also looking forward to a solution ... how are we supposed to test our endpoints when rate-limiting is active? In my case, I have the following test-file:
Using pytest for testing, results in the following error:
As far as I know, the |
I have managed to do so by modifying the
Then use Source: fastapi/fastapi#2795 (comment) |
FIxes pytest issues, but for my implementation, where I've seperated GET and PUT,etc., rate limit values, my fastapi app applies the GET timer to non-GET endpoints. Some overlap in the hash by redis or something. |
What is the expected way of overriding the dependency for the rate limiter from the tests? Any example would be appreciated
The text was updated successfully, but these errors were encountered: