Skip to content

Commit 7b99438

Browse files
committed
Disable rate limit. Tests log in and trip the limit causeing failures.
1 parent 3305f97 commit 7b99438

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_liveserver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ def setup_class(cls):
7575
cls.db.config.MAIL_DEBUG = "../_test_tracker_mail.log"
7676
cls.db.config.WEB_CSRF_ENFORCE_HEADER_ORIGIN = "required"
7777
cls.db.config.WEB_ALLOWED_API_ORIGINS = "https://client.com"
78+
79+
# disable web login rate limiting. The fast rate of tests
80+
# causes them to trip the rate limit and fail.
81+
cls.db.config.WEB_LOGIN_ATTEMPTS_MIN = 0
7882

7983
cls.db.config['WEB_CSRF_ENFORCE_HEADER_X-REQUESTED-WITH'] = "required"
8084

0 commit comments

Comments
 (0)