forked from GithubBackups/healthchecks
Custom test runner for quicker tests.
This commit is contained in:
parent
b9ae8d464c
commit
4e12193d8c
@ -0,0 +1,12 @@
|
||||
from django.conf import settings
|
||||
from django.test.runner import DiscoverRunner
|
||||
|
||||
|
||||
class CustomRunner(DiscoverRunner):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
# For speed:
|
||||
settings.PASSWORD_HASHERS = \
|
||||
('django.contrib.auth.hashers.MD5PasswordHasher', )
|
||||
|
||||
super(CustomRunner, self).__init__(*args, **kwargs)
|
@ -71,6 +71,8 @@ TEMPLATES = [
|
||||
]
|
||||
|
||||
WSGI_APPLICATION = 'hc.wsgi.application'
|
||||
TEST_RUNNER = 'hc.api.tests.CustomRunner'
|
||||
|
||||
|
||||
# Default database engine is SQLite. So one can just check out code,
|
||||
# install requirements.txt and do manage.py runserver and it works
|
||||
|
Loading…
x
Reference in New Issue
Block a user