Skip to content

Commit

Permalink
branch settings
Browse files Browse the repository at this point in the history
  • Loading branch information
soratidus999 committed Aug 31, 2024
1 parent 86e2def commit 90171a7
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 78 deletions.
78 changes: 0 additions & 78 deletions tests/test_settings.py

This file was deleted.

52 changes: 52 additions & 0 deletions tests/test_settingsAA3.py
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",
}
}
}
55 changes: 55 additions & 0 deletions tests/test_settingsAA4.py
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",
}
}
}

0 comments on commit 90171a7

Please sign in to comment.