-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86e2def
commit 90171a7
Showing
3 changed files
with
107 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
""" | ||
Alliance Auth Test Suite Django settings. | ||
""" | ||
|
||
from allianceauth.project_template.project_name.settings.base import * # noqa | ||
|
||
# Celery configuration | ||
CELERY_ALWAYS_EAGER = True # Forces celery to run locally for testing | ||
|
||
INSTALLED_APPS += [ | ||
'allianceauth_oidc', | ||
'oauth2_provider' | ||
] | ||
|
||
ROOT_URLCONF = 'tests.urls' | ||
|
||
NOSE_ARGS = [ | ||
# '--with-coverage', | ||
# '--cover-package=', | ||
# '--exe', # If your tests need this to be found/run, check they py files are not chmodded +x | ||
] | ||
|
||
|
||
PASSWORD_HASHERS = [ | ||
'django.contrib.auth.hashers.MD5PasswordHasher', | ||
] | ||
|
||
# LOGGING = None # Comment out to enable logging for debugging | ||
|
||
# Register an application at https://developers.eveonline.com for Authentication | ||
# & API Access and fill out these settings. Be sure to set the callback URL | ||
# to https://example.com/sso/callback substituting your domain for example.com | ||
# Logging in to auth requires the publicData scope (can be overridden through the | ||
# LOGIN_TOKEN_SCOPES setting). Other apps may require more (see their docs). | ||
ESI_SSO_CLIENT_ID = '123' | ||
ESI_SSO_CLIENT_SECRET = '123' | ||
ESI_SSO_CALLBACK_URL = '123' | ||
|
||
CACHES = { | ||
"default": { | ||
# "BACKEND": "redis_cache.RedisCache", | ||
# "LOCATION": "localhost:6379", | ||
# "OPTIONS": { | ||
# "DB": 1, | ||
# } | ||
"BACKEND": "django_redis.cache.RedisCache", | ||
"LOCATION": "redis://localhost:6379/1", | ||
"OPTIONS": { | ||
"COMPRESSOR": "django_redis.compressors.lzma.LzmaCompressor", | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
""" | ||
Alliance Auth Test Suite Django settings. | ||
""" | ||
|
||
from allianceauth.project_template.project_name.settings.base import * # noqa | ||
|
||
SITE_URL = "https://example.com" | ||
CSRF_TRUSTED_ORIGINS = [SITE_URL] | ||
|
||
# Celery configuration | ||
CELERY_ALWAYS_EAGER = True # Forces celery to run locally for testing | ||
|
||
INSTALLED_APPS += [ | ||
'allianceauth_oidc', | ||
'oauth2_provider' | ||
] | ||
|
||
ROOT_URLCONF = 'tests.urls' | ||
|
||
NOSE_ARGS = [ | ||
# '--with-coverage', | ||
# '--cover-package=', | ||
# '--exe', # If your tests need this to be found/run, check they py files are not chmodded +x | ||
] | ||
|
||
|
||
PASSWORD_HASHERS = [ | ||
'django.contrib.auth.hashers.MD5PasswordHasher', | ||
] | ||
|
||
# LOGGING = None # Comment out to enable logging for debugging | ||
|
||
# Register an application at https://developers.eveonline.com for Authentication | ||
# & API Access and fill out these settings. Be sure to set the callback URL | ||
# to https://example.com/sso/callback substituting your domain for example.com | ||
# Logging in to auth requires the publicData scope (can be overridden through the | ||
# LOGIN_TOKEN_SCOPES setting). Other apps may require more (see their docs). | ||
ESI_SSO_CLIENT_ID = '123' | ||
ESI_SSO_CLIENT_SECRET = '123' | ||
ESI_SSO_CALLBACK_URL = '123' | ||
|
||
CACHES = { | ||
"default": { | ||
# "BACKEND": "redis_cache.RedisCache", | ||
# "LOCATION": "localhost:6379", | ||
# "OPTIONS": { | ||
# "DB": 1, | ||
# } | ||
"BACKEND": "django_redis.cache.RedisCache", | ||
"LOCATION": "redis://localhost:6379/1", | ||
"OPTIONS": { | ||
"COMPRESSOR": "django_redis.compressors.lzma.LzmaCompressor", | ||
} | ||
} | ||
} |