Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 6754:bb04638dc78d | 6755:d308fb5ba9b0 |
|---|---|
| 73 cls.db.config.MAILHOST = "localhost" | 73 cls.db.config.MAILHOST = "localhost" |
| 74 cls.db.config.MAIL_HOST = "localhost" | 74 cls.db.config.MAIL_HOST = "localhost" |
| 75 cls.db.config.MAIL_DEBUG = "../_test_tracker_mail.log" | 75 cls.db.config.MAIL_DEBUG = "../_test_tracker_mail.log" |
| 76 cls.db.config.WEB_CSRF_ENFORCE_HEADER_ORIGIN = "required" | 76 cls.db.config.WEB_CSRF_ENFORCE_HEADER_ORIGIN = "required" |
| 77 cls.db.config.WEB_ALLOWED_API_ORIGINS = "https://client.com" | 77 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 | |
| 78 | 82 |
| 79 cls.db.config['WEB_CSRF_ENFORCE_HEADER_X-REQUESTED-WITH'] = "required" | 83 cls.db.config['WEB_CSRF_ENFORCE_HEADER_X-REQUESTED-WITH'] = "required" |
| 80 | 84 |
| 81 # enable static precompressed files | 85 # enable static precompressed files |
| 82 cls.db.config.WEB_USE_PRECOMPRESSED_FILES = 1 | 86 cls.db.config.WEB_USE_PRECOMPRESSED_FILES = 1 |
