We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 098cde7 + 6dba01d commit 0c78668Copy full SHA for 0c78668
tests/openwisp2/settings.py
@@ -14,6 +14,7 @@
14
"default": {
15
"ENGINE": "openwisp_utils.db.backends.spatialite",
16
"NAME": os.path.join(BASE_DIR, "openwisp-controller.db"),
17
+ "OPTIONS": {"timeout": 10},
18
}
19
20
if TESTING and "--exclude-tag=selenium_tests" not in sys.argv:
@@ -149,6 +150,9 @@
149
150
EMAIL_PORT = "1025" # for testing purposes
151
LOGIN_REDIRECT_URL = "admin:index"
152
ACCOUNT_LOGOUT_REDIRECT_URL = LOGIN_REDIRECT_URL
153
+# disable allauth ratelimiting during automated tests
154
+if TESTING:
155
+ ACCOUNT_RATE_LIMITS = False
156
OPENWISP_ORGANIZATION_USER_ADMIN = True # tests will fail without this setting
157
OPENWISP_ADMIN_DASHBOARD_ENABLED = True
158
OPENWISP_CONTROLLER_GROUP_PIE_CHART = True
0 commit comments