Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16608 -- Clarified the description of the destroy_test_db meth…

…od and cleaned up various other reST/Sphinx-related bits in the testing docs. Thanks to Stan for the report and Julien for the draft patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 41b31b4d09c238d723e951dc0233bae747cfb8e9 1 parent b825680
authored August 18, 2011

Showing 1 changed file with 10 additions and 6 deletions. Show diff stats Hide diff stats

  1. 16  docs/topics/testing.txt
16  docs/topics/testing.txt
@@ -1278,6 +1278,7 @@ already have some data in your database. See the :djadmin:`dumpdata
1278 1278
 documentation<dumpdata>` for more details.
1279 1279
 
1280 1280
 .. note::
  1281
+
1281 1282
     If you've ever run :djadmin:`manage.py syncdb<syncdb>`, you've
1282 1283
     already used a fixture without even knowing it! When you call
1283 1284
     :djadmin:`syncdb` in the database for the first time, Django
@@ -1919,10 +1920,12 @@ utility methods in the ``django.test.utils`` module.
1919 1920
     magic hooks into the template system and restoring normal email
1920 1921
     services.
1921 1922
 
  1923
+.. currentmodule:: django.db.connection.creation
  1924
+
1922 1925
 The creation module of the database backend (``connection.creation``)
1923 1926
 also provides some utilities that can be useful during testing.
1924 1927
 
1925  
-.. function:: create_test_db(verbosity=1, autoclobber=False)
  1928
+.. function:: create_test_db([verbosity=1, autoclobber=False])
1926 1929
 
1927 1930
     Creates a new test database and runs ``syncdb`` against it.
1928 1931
 
@@ -1944,10 +1947,11 @@ also provides some utilities that can be useful during testing.
1944 1947
     :setting:`NAME` in :setting:`DATABASES` to match the name of the test
1945 1948
     database.
1946 1949
 
1947  
-.. function:: destroy_test_db(old_database_name, verbosity=1)
  1950
+.. function:: destroy_test_db(old_database_name, [verbosity=1])
1948 1951
 
1949  
-    Destroys the database whose name is in stored in :setting:`NAME` in the
1950  
-    :setting:`DATABASES`, and sets :setting:`NAME` to use the
1951  
-    provided name.
  1952
+    Destroys the database whose name is the value of :setting:`NAME` in
  1953
+    :setting:`DATABASES`, and sets :setting:`NAME` to the value of
  1954
+    ``old_database_name``.
1952 1955
 
1953  
-    ``verbosity`` has the same behavior as in ``run_tests()``.
  1956
+    The ``verbosity`` argument has the same behavior as for
  1957
+    :class:`~django.test.simple.DjangoTestSuiteRunner`.

0 notes on commit 41b31b4

Please sign in to comment.
Something went wrong with that request. Please try again.