Skip to content

Commit 260289a

Browse files
committed
[tests] Disable ACCOUNT_RATE_LIMITS during automated testing
1 parent ebbb76f commit 260289a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/openwisp2/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@
149149
EMAIL_PORT = "1025" # for testing purposes
150150
LOGIN_REDIRECT_URL = "admin:index"
151151
ACCOUNT_LOGOUT_REDIRECT_URL = LOGIN_REDIRECT_URL
152+
# disable allauth ratelimiting during automated tests
153+
if TESTING:
154+
ACCOUNT_RATE_LIMITS = False
152155
OPENWISP_ORGANIZATION_USER_ADMIN = True # tests will fail without this setting
153156
OPENWISP_ADMIN_DASHBOARD_ENABLED = True
154157
OPENWISP_CONTROLLER_GROUP_PIE_CHART = True

0 commit comments

Comments
 (0)