I am trying to implement rate limiter for my FastAPI project, but the dependencies make it hard for me to mock the limiter so my tests that I have already written do not fail. I simply want to mock the limiter for tests so the tests do not care about a limiter being there. As you can see in the code, I used fastapi-limiter 0.2.0. So my question is if there is someone that has dealt with similar issue and has an answer.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.