Ticket #3628: docs.testing.diff
File docs.testing.diff, 1.0 KB (added by , 18 years ago) |
---|
-
testing.txt
393 393 def setUp(self): 394 394 # test definitions as before 395 395 396 At the start of each test vase, before ``setUp()`` is run, Django will396 At the start of each test case, before ``setUp()`` is run, Django will 397 397 flush the database, returning the database the state it was in directly 398 398 after ``syncdb`` was called. Then, all the named fixtures are installed. 399 399 In this example, any JSON fixture called ``mammals``, and any fixture 400 400 named ``birds`` will be installed. See the documentation on 401 401 `loading fixtures`_ for more details on defining and installing fixtures. 402 402 403 .. _`loading fixtures`: ../django -admin/#loaddata-fixture-fixture403 .. _`loading fixtures`: ../django_admin/#loaddata-fixture-fixture 404 404 405 405 This flush/load procedure is repeated for each test in the test case, so you 406 406 can be certain that the outcome of a test will not be affected by