Skip to content

Commit 0c78668

Browse files
authored
Merge branch 'master' into issues/1128-update_config
2 parents 098cde7 + 6dba01d commit 0c78668

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/openwisp2/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"default": {
1515
"ENGINE": "openwisp_utils.db.backends.spatialite",
1616
"NAME": os.path.join(BASE_DIR, "openwisp-controller.db"),
17+
"OPTIONS": {"timeout": 10},
1718
}
1819
}
1920
if TESTING and "--exclude-tag=selenium_tests" not in sys.argv:
@@ -149,6 +150,9 @@
149150
EMAIL_PORT = "1025" # for testing purposes
150151
LOGIN_REDIRECT_URL = "admin:index"
151152
ACCOUNT_LOGOUT_REDIRECT_URL = LOGIN_REDIRECT_URL
153+
# disable allauth ratelimiting during automated tests
154+
if TESTING:
155+
ACCOUNT_RATE_LIMITS = False
152156
OPENWISP_ORGANIZATION_USER_ADMIN = True # tests will fail without this setting
153157
OPENWISP_ADMIN_DASHBOARD_ENABLED = True
154158
OPENWISP_CONTROLLER_GROUP_PIE_CHART = True

0 commit comments

Comments
 (0)