diff options
| author | Tom Christie | 2012-09-01 21:35:30 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-01 21:35:30 +0100 | 
| commit | b9177f740bf91e6e39abd0991f030d592b7ca6e5 (patch) | |
| tree | beeae22e34a85459528f73741dc58684cbf12319 /djangorestframework/runtests/runtests.py | |
| parent | 5d21e42206938f840cbaeb08829d74644e84fc5d (diff) | |
| download | django-rest-framework-b9177f740bf91e6e39abd0991f030d592b7ca6e5.tar.bz2 | |
Docs tweak for first docs deployment
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) | 
