mirror of
https://github.com/jazzband/django-constance.git
synced 2026-04-11 18:51:01 +00:00
23 lines
572 B
Python
Executable file
23 lines
572 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
"""Borrowed from Carl Meyer's django-adminfiles."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
testapp_dir = os.path.dirname(os.path.abspath(__file__))
|
|
constance_dir = os.path.dirname(testapp_dir)
|
|
sys.path.insert(0, constance_dir)
|
|
sys.path.insert(0, testapp_dir)
|
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'testproject.settings'
|
|
|
|
from django.test.simple import DjangoTestSuiteRunner
|
|
|
|
def main():
|
|
runner = DjangoTestSuiteRunner()
|
|
failures = runner.run_tests(['test_app'], verbosity=1, interactive=True)
|
|
sys.exit(failures)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|