diff options
Diffstat (limited to 'djangorestframework/runtests/runtests.py')
| -rwxr-xr-x[-rw-r--r--] | djangorestframework/runtests/runtests.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/djangorestframework/runtests/runtests.py b/djangorestframework/runtests/runtests.py index 9f5cc7aa..1628aff7 100644..100755 --- a/djangorestframework/runtests/runtests.py +++ b/djangorestframework/runtests/runtests.py @@ -1,8 +1,5 @@ -''' -Created on Mar 10, 2011 +#!/usr/bin/env python -@author: tomchristie -''' # http://ericholscher.com/blog/2009/jun/29/enable-setuppy-test-your-django-apps/ # http://www.travisswicegood.com/2010/01/17/django-virtualenv-pip-and-fabric/ # http://code.djangoproject.com/svn/django/trunk/tests/runtests.py @@ -13,6 +10,7 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'djangorestframework.runtests.settings' from django.conf import settings from django.test.utils import get_runner + def usage(): return """ Usage: python runtests.py [UnitTestClass].[method] @@ -22,6 +20,7 @@ def usage(): Append a method name if you only want to test a specific method of that class. """ + def main(): TestRunner = get_runner(settings) |
