Changes between Version 1 and Version 2 of TestingGuide


Ignore:
Timestamp:
02/01/2009 03:42:47 PM (6 years ago)
Author:
nielsw
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TestingGuide

    v1 v2  
    22
    33
    4 [test_urls]
    5 Never use test_urls if your don't have a dedicated test template. Someone else may insert {% url %} tags in there (or template tags that do url reversing causing your unit tests to fail.
     4'''test_urls'''
     5Never use test_urls if your don't have a dedicated test template. Someone else may insert {% url %} tags in there (or template tags that do url reversing) causing your unit tests to fail.
     6
     7
     8'''Testing view classes'''
     9Testing view classes through the test.client() can often require you to write lots of views that call the test class. It's often convenient to write a mapper view class that allows you to map a function to a temporary url.
Back to Top