TST: Drop django-test-without-migrations
This commit is contained in:
parent
d8c5595141
commit
76e5f1dc58
2 changed files with 25 additions and 2 deletions
|
@ -7,6 +7,8 @@ Local settings
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
import sys
|
||||||
|
import logging
|
||||||
|
|
||||||
from .base import * # noqa
|
from .base import * # noqa
|
||||||
|
|
||||||
|
@ -26,7 +28,8 @@ TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
||||||
# Note: This key only used for development and testing.
|
# Note: This key only used for development and testing.
|
||||||
SECRET_KEY = env("DJANGO_SECRET_KEY", default='t69v7lq5ayk^k_)uyvjvpo(sljrcnbh)&$(rsqqjg-87160@^%')
|
SECRET_KEY = env("DJANGO_SECRET_KEY",
|
||||||
|
default='t69v7lq5ayk^k_)uyvjvpo(sljrcnbh)&$(rsqqjg-87160@^%')
|
||||||
|
|
||||||
# Mail settings
|
# Mail settings
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
@ -58,6 +61,27 @@ DEBUG_TOOLBAR_CONFIG = {
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
||||||
|
|
||||||
|
|
||||||
|
# http://stackoverflow.com/a/28560805/313548
|
||||||
|
class DisableMigrations(object):
|
||||||
|
def __contains__(self, item):
|
||||||
|
return True
|
||||||
|
|
||||||
|
def __getitem__(self, item):
|
||||||
|
return "notmigrations"
|
||||||
|
|
||||||
|
|
||||||
|
TESTS_IN_PROGRESS = False
|
||||||
|
if 'test' in sys.argv[1:] or 'jenkins' in sys.argv[1:]:
|
||||||
|
logging.disable(logging.CRITICAL)
|
||||||
|
PASSWORD_HASHERS = (
|
||||||
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||||
|
)
|
||||||
|
DEBUG = False
|
||||||
|
TEMPLATE_DEBUG = False
|
||||||
|
TESTS_IN_PROGRESS = True
|
||||||
|
MIGRATION_MODULES = DisableMigrations()
|
||||||
|
|
||||||
MANIFEST_URL = env('MANIFEST_URL', default=None)
|
MANIFEST_URL = env('MANIFEST_URL', default=None)
|
||||||
CORS_ORIGIN_ALLOW_ALL = True
|
CORS_ORIGIN_ALLOW_ALL = True
|
||||||
|
|
||||||
|
|
|
@ -6,5 +6,4 @@ django-extensions==1.6.7
|
||||||
flake8==2.5.4
|
flake8==2.5.4
|
||||||
pygraphviz==1.3.1
|
pygraphviz==1.3.1
|
||||||
ipython==4.2.0
|
ipython==4.2.0
|
||||||
django-test-without-migrations==0.4
|
|
||||||
factory-boy==2.7.0
|
factory-boy==2.7.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue