Django

Code

Changeset 3713

Show
Ignore:
Timestamp:
09/04/06 08:05:51 (2 years ago)
Author:
russellm
Message:

Refs #2333 - Made minor tweaks to the formatting of testing documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/testing.txt

    r3711 r3713  
    210210can be invoked on the ``Client`` instance. 
    211211 
    212 ``get(path, data={}):`` 
     212``get(path, data={})`` 
    213213 
    214214    Make a GET request on the provided ``path``. The key-value pairs in the 
     
    222222        http://yoursite.com/customers/details/?name='fred'&age=7 
    223223 
    224 ``post(path, data={}):`` 
     224``post(path, data={})`` 
    225225 
    226226    Make a POST request on the provided ``path``. The key-value pairs in the 
    227227    data dictionary will be used to create the POST data payload. This payload 
    228     will be transmitted with the mimetype ```multipart/form-data``.  
     228    will be transmitted with the mimetype ``multipart/form-data``.  
    229229 
    230230    However submitting files is a special case. To POST a file, you need only 
     
    243243    need to manually close the file after it has been provided to the POST. 
    244244 
    245 ``login(path, username, password):`` 
     245``login(path, username, password)`` 
    246246 
    247247    In a production site, it is likely that some views will be protected with 
     
    427427 
    428428``setup_test_environment()`` 
    429  
    430429    Performs any global pre-test setup, such as the installing the  
    431430    instrumentation of the template rendering system.  
     
    436435    of the template rendering system.  
    437436 
    438 ``create_test_db(verbosity=1, autoclobber=False)``: 
    439  
     437``create_test_db(verbosity=1, autoclobber=False)`` 
    440438    Creates a new test database, and run ``syncdb`` against it. 
    441439 
     
    451449    ``settings.DATABASE_NAME`` to match the name of the test database. 
    452450 
    453 ``destroy_test_db(old_database_name, verbosity=1)``: 
    454  
     451``destroy_test_db(old_database_name, verbosity=1)`` 
    455452    Destroys the database with the name ``settings.DATABASE_NAME`` matching, 
    456453    and restores the value of ``settings.DATABASE_NAME`` to the provided name.