mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 10:33:45 +03:00
missed file
This commit is contained in:
parent
02b1f3aa20
commit
e32e125a65
17
rest_auth/runtests.py
Normal file
17
rest_auth/runtests.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#This file mainly exists to allow python setup.py test to work.
|
||||
import os, 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()
|
Loading…
Reference in New Issue
Block a user