Changeset 8189
- Timestamp:
- 08/01/08 19:40:05 (5 months ago)
- Files:
-
- django/trunk/docs/testing.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/testing.txt
r8078 r8189 25 25 This document is split into two primary sections. First, we explain how to 26 26 write tests with Django. Then, we explain how to run them. 27 28 .. admonition:: Note29 30 This testing framework is currently under development. It may change31 slightly before the next official Django release.32 33 (That's *no* excuse not to write tests, though!)34 27 35 28 Writing tests … … 816 809 If your ``TestCase`` instance defines an ``urls`` attribute, the 817 810 ``TestCase`` will use the value of that attribute as the ``ROOT_URLCONF`` 818 for the duration of that test. 811 for the duration of that test. 819 812 820 813 For example:: 821 814 822 815 from django.test import TestCase 823 816 824 817 class TestMyViews(TestCase): 825 818 urls = 'myapp.test_urls'
