mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
* Restructure runtests.py as suggested in https://docs.djangoproject.com/en/1.9/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications * Load version-specific Django settings modules (rather than trying to make a single settings.configure() work with all supported versions). * Use `django-admin startproject` defaults for all settings modules. (Tests compatibility with typical apps, middleware, and other settings.) * Set up tests-specific url config; switch to literal urls in test cases. (Eliminates url `reverse` from tests.) * Make runtests.py executable Closes #18
15 lines
582 B
Python
15 lines
582 B
Python
# These are the default "django-admin startproject" settings.py files
|
|
# for each supported version of Django, with:
|
|
#
|
|
# * "anymail" appended to INSTALLED_APPS
|
|
# * ROOT_URLCONF = 'tests.test_settings.urls'
|
|
#
|
|
# Keeping a file for each Django version is simpler than trying
|
|
# to maintain warning-free compatibility with all Django versions
|
|
# in a single settings list.
|
|
#
|
|
# It also helps ensure compatibility with default apps, middleware, etc.
|
|
#
|
|
# You can typically find the default settings.py template in
|
|
# SITE_PACKAGES/django/conf/project_template/project_name/settings.py-tpl
|