Skip to content

Commit

Permalink
Disable rate limiting in testing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vianpyro committed Nov 26, 2024
1 parent b7f9ce6 commit 53f70d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
app = Flask(__name__)
app.config.from_object(Config)
CORS(app)
limiter.init_app(app)

if app.config["TESTING"]:
limiter.enabled = False


@app.route("/", methods=["GET"])
Expand Down

0 comments on commit 53f70d7

Please sign in to comment.