Code

Ticket #11505: doc_patch.patch

File doc_patch.patch, 722 bytes (added by andrewfong, 5 years ago)

Documentation of cache flushing

  • docs/topics/testing.txt

     
    883883MyISAM storage engine), ``TestCase`` falls back to initializing the database 
    884884by truncating tables and reloading initial data. 
    885885 
     886In addition to rolling back / flushing changes to the database, both 
     887``TestCase`` and ``TransactionTestCase`` also reset the cache. The cache 
     888reset is called during pre-test setup, before fixture loading occurs. 
    886889 
     890 
    887891.. note:: 
    888892    The ``TestCase`` use of rollback to un-do the effects of the test code 
    889893    may reveal previously-undetected errors in test code.  For example,