django-rest-auth/rest_auth/runtests.py
Mateusz Sikora f14b3b03f7 django-registration replacement
- remove django-registration references
- integrate with django-allauth
- move all registration stuff to separated app
- update unit tests
2014-10-01 14:13:21 +02:00

21 lines
522 B
Python

#This file mainly exists to allow python setup.py test to work.
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
test_dir = os.path.dirname(__file__)
sys.path.insert(0, test_dir)
from django.test.utils import get_runner
from django.conf import settings
def runtests():
TestRunner = get_runner(settings)
test_runner = TestRunner(verbosity=1, interactive=True)
failures = test_runner.run_tests(['rest_auth'])
sys.exit(bool(failures))
if __name__ == '__main__':
runtests()