Fix.
[django-pagination.git] / fnp_django_pagination / tests / runner.py
1 #!/usr/bin/env python
2
3 import django
4 import os
5 import sys
6
7 from django.core.management import call_command
8
9
10 def runtests():
11     os.environ['DJANGO_SETTINGS_MODULE'] = 'fnp_django_pagination.tests.settings'
12     django.setup()
13
14     failures = call_command('test', 'fnp_django_pagination')
15     sys.exit(bool(failures))
16
17 if __name__ == '__main__':
18     runtests()