5 # Make a backup of DJANGO_SETTINGS_MODULE environment variable to restore later.
6 backup = os.environ.get('DJANGO_SETTINGS_MODULE', '')
7 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
9 from django.test.simple import run_tests
11 if __name__ == "__main__":
12 failures = run_tests(['pagination',], verbosity=9)
15 # Reset the DJANGO_SETTINGS_MODULE to what it was before running tests.
16 os.environ['DJANGO_SETTINGS_MODULE'] = backup