Author: russellm
Date: 2010-01-18 17:53:08 -0600 (Mon, 18 Jan 2010)
New Revision: 12260

Modified:
   django/trunk/docs/ref/settings.txt
   django/trunk/docs/topics/testing.txt
Log:
Fixed #12638 -- Minor documentation cleanups around the new class-based test 
runners. Thanks to Ramiro Morales for the patch.

Modified: django/trunk/docs/ref/settings.txt
===================================================================
--- django/trunk/docs/ref/settings.txt  2010-01-18 23:49:20 UTC (rev 12259)
+++ django/trunk/docs/ref/settings.txt  2010-01-18 23:53:08 UTC (rev 12260)
@@ -1409,9 +1409,12 @@
 TEST_RUNNER
 -----------
 
-Default: ``'django.test.simple.run_tests'``
+Default: ``'django.test.simple.DjangoTestSuiteRunner'``
 
-The name of the method to use for starting the test suite. See
+.. versionchanged:: 1.2
+   Prior to 1.2, test runners were a function, not a class.
+
+The name of the class to use for starting the test suite. See
 :ref:`topics-testing`.
 
 .. _Testing Django Applications: ../testing/

Modified: django/trunk/docs/topics/testing.txt
===================================================================
--- django/trunk/docs/topics/testing.txt        2010-01-18 23:49:20 UTC (rev 
12259)
+++ django/trunk/docs/topics/testing.txt        2010-01-18 23:53:08 UTC (rev 
12260)
@@ -1247,8 +1247,8 @@
 
     #. Performing global post-test teardown.
 
-If you define your own test runner method and point :setting:`TEST_RUNNER` at
-that method, Django will execute your test runner whenever you run
+If you define your own test runner class and point :setting:`TEST_RUNNER` at
+that class, Django will execute your test runner whenever you run
 ``./manage.py test``. In this way, it is possible to use any test framework
 that can be executed from Python code, or to modify the Django test execution
 process to satisfy whatever testing requirements you may have.
@@ -1290,7 +1290,7 @@
     write your own test runner, ensure accept and handle the ``**kwargs``
     parameter.
 
-.. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=[])
+.. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=None)
 
     Run the test suite.
 
@@ -1315,7 +1315,7 @@
 
     Sets up the test environment ready for testing.
 
-.. method:: DjangoTestSuiteRunner.build_suite(test_labels, extra_tests=[])
+.. method:: DjangoTestSuiteRunner.build_suite(test_labels, extra_tests=None)
 
     Constructs a test suite that matches the test labels provided.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to