Ticket #15582: 15582.diff

File 15582.diff, 1.1 KB (added by Tim Graham, 11 years ago)
  • docs/topics/testing/overview.txt

    diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
    index 420401c..63df8cf 100644
    a b This flush/load procedure is repeated for each test in the test case, so you  
    12291229can be certain that the outcome of a test will not be affected by another test,
    12301230or by the order of test execution.
    12311231
     1232If you are using multiple databases, fixtures are only loaded into the
     1233``default`` database by default. If you set :attr:`multi_db=True
     1234<TransactionTestCase.multi_db>`, fixtures are loaded into all databases.
     1235
    12321236URLconf configuration
    12331237~~~~~~~~~~~~~~~~~~~~~
    12341238
    For example::  
    12941298This test case will flush *all* the test databases before running
    12951299``testIndexPageView``.
    12961300
     1301The ``multi_db`` flag also affects which databases the fixtures from
     1302:attr:`TransactionTestCase.fixtures` are loaded into. By default
     1303(when ``multi_db=False``), fixtures are only loaded into the ``default``
     1304database. If ``multi_db=True``, fixtures are loaded into all databases.
     1305
    12971306.. _overriding-settings:
    12981307
    12991308Overriding settings
Back to Top