This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved tests package inside app folder
- Loading branch information
Showing
12 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
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
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
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 @@ | ||
|
||
INSTALLED_APPS = [ | ||
"django.contrib.auth", | ||
"django.contrib.contenttypes", | ||
"django.contrib.sites", | ||
"django.contrib.messages", | ||
"django.contrib.sessions", | ||
"stored_messages", | ||
] | ||
|
||
try: | ||
import rest_framework | ||
INSTALLED_APPS.append("rest_framework") | ||
except ImportError: | ||
pass | ||
|
||
|
||
DEBUG = True | ||
USE_TZ = True | ||
|
||
DATABASES = { | ||
"default": { | ||
"ENGINE": "django.db.backends.sqlite3", | ||
} | ||
} | ||
|
||
ROOT_URLCONF = "stored_messages.urls" | ||
|
||
# Django 1.7 has a new, minimal default set for MIDDLEWARE_CLASSES so be explicit | ||
MIDDLEWARE_CLASSES = ( | ||
'django.middleware.common.CommonMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
'django.middleware.csrf.CsrfViewMiddleware', | ||
'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
'django.contrib.messages.middleware.MessageMiddleware', | ||
) | ||
|
||
SITE_ID = 1 | ||
|
||
MESSAGE_STORAGE = 'stored_messages.storage.PersistentStorage', | ||
STORED_MESSAGES = { | ||
'REDIS_URL': 'redis://localhost:6379/0', | ||
} | ||
|
||
MOCK_REDIS_SERVER = True | ||
|
||
import django | ||
|
||
if django.VERSION[:2] < (1, 6): | ||
TEST_RUNNER = 'discover_runner.DiscoverRunner' | ||
INSTALLED_APPS += ('discover_runner',) | ||
else: | ||
TEST_RUNNER = 'django.test.runner.DiscoverRunner' | ||
|
||
SECRET_KEY = 'FUUUFU' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.