6 from django.conf import settings
10 if not settings.configured:
11 # Configure test environment
13 SECRET_KEY='fake-key',
15 'linaro_django_pagination',
21 except AttributeError: # for Django 1.6 compatible
24 from django.test.utils import get_runner
26 TestRunner = get_runner(settings)
27 test_runner = TestRunner()
28 failures = test_runner.run_tests(
29 ["linaro_django_pagination.tests"],
30 extra_tests=[doctest.DocTestSuite('linaro_django_pagination.tests.test_main')]
32 sys.exit(bool(failures))
35 if __name__ == '__main__':