mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-18 14:55:09 +01:00
Extend tox setup to include core only testing
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
"""
|
||||
Alliance Auth Test Suite Django settings.
|
||||
Alliance Auth Test Suite Django settings
|
||||
|
||||
Testing all services and plug-in apps
|
||||
"""
|
||||
|
||||
from allianceauth.project_template.project_name.settings.base import *
|
||||
@@ -41,14 +43,6 @@ ROOT_URLCONF = 'tests.urls'
|
||||
|
||||
CACHES['default'] = {'BACKEND': 'django.core.cache.backends.db.DatabaseCache'}
|
||||
|
||||
#####################
|
||||
# HR Configuration
|
||||
#####################
|
||||
# JACK_KNIFE_URL - Url for the audit page of API Jack knife
|
||||
# Should seriously replace with your own.
|
||||
#####################
|
||||
JACK_KNIFE_URL = 'http://example.com/eveapi/audit.php'
|
||||
|
||||
########################
|
||||
# XenForo Configuration
|
||||
########################
|
||||
33
tests/settings_core.py
Normal file
33
tests/settings_core.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
Alliance Auth Test Suite Django settings
|
||||
|
||||
Testing core packages only
|
||||
"""
|
||||
|
||||
from allianceauth.project_template.project_name.settings.base import *
|
||||
|
||||
# Use nose to run all tests
|
||||
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
|
||||
|
||||
NOSE_ARGS = [
|
||||
#'--with-coverage',
|
||||
#'--cover-package=',
|
||||
#'--exe', # If your tests need this to be found/run, check they py files are not chmodded +x
|
||||
]
|
||||
|
||||
# Celery configuration
|
||||
CELERY_ALWAYS_EAGER = True # Forces celery to run locally for testing
|
||||
|
||||
INSTALLED_APPS += [
|
||||
'django_nose',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'tests.urls'
|
||||
|
||||
CACHES['default'] = {'BACKEND': 'django.core.cache.backends.db.DatabaseCache'}
|
||||
|
||||
PASSWORD_HASHERS = [
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
]
|
||||
|
||||
LOGGING = None # Comment out to enable logging for debugging
|
||||
Reference in New Issue
Block a user