django-constance/tests/runtests.py

16 lines
279 B
Python
Raw Normal View History

2010-12-02 10:08:01 +00:00
#!/usr/bin/env python
2010-08-25 12:58:09 +00:00
import os
import sys
from django.core.management import call_command
2010-08-25 12:11:26 +00:00
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
2010-08-25 12:11:26 +00:00
2010-08-25 12:55:01 +00:00
2010-12-02 10:08:01 +00:00
def main():
result = call_command('test', 'tests', verbosity=2)
sys.exit(result)
2010-08-25 12:11:26 +00:00
if __name__ == '__main__':
2010-12-02 10:08:01 +00:00
main()