Changeset View
Changeset View
Standalone View
Standalone View
swh/web/settings/tests.py
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | def activate_wal_journal_mode(sender, connection, **kwargs): | ||||
cursor = connection.cursor() | cursor = connection.cursor() | ||||
cursor.execute("PRAGMA journal_mode = WAL;") | cursor.execute("PRAGMA journal_mode = WAL;") | ||||
connection_created.connect(activate_wal_journal_mode) | connection_created.connect(activate_wal_journal_mode) | ||||
else: | else: | ||||
# Silent DEBUG output when running unit tests | # Silent DEBUG output when running unit tests | ||||
LOGGING["handlers"]["console"]["level"] = "INFO" # type: ignore | LOGGING["handlers"]["console"]["level"] = "INFO" # type: ignore | ||||
LOGIN_URL = "login" if not _pytest else "oidc-login" | |||||
LOGOUT_URL = "logout" if not _pytest else "oidc-logout" |