Mercurial > p > roundup > code
diff test/test_liveserver.py @ 6755:d308fb5ba9b0
Disable rate limit. Tests log in and trip the limit causeing failures.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 05 Jul 2022 01:22:06 -0400 |
| parents | bb04638dc78d |
| children | 1572568fe146 |
line wrap: on
line diff
--- a/test/test_liveserver.py Tue Jul 05 00:36:22 2022 -0400 +++ b/test/test_liveserver.py Tue Jul 05 01:22:06 2022 -0400 @@ -75,6 +75,10 @@ cls.db.config.MAIL_DEBUG = "../_test_tracker_mail.log" cls.db.config.WEB_CSRF_ENFORCE_HEADER_ORIGIN = "required" cls.db.config.WEB_ALLOWED_API_ORIGINS = "https://client.com" + + # disable web login rate limiting. The fast rate of tests + # causes them to trip the rate limit and fail. + cls.db.config.WEB_LOGIN_ATTEMPTS_MIN = 0 cls.db.config['WEB_CSRF_ENFORCE_HEADER_X-REQUESTED-WITH'] = "required"
