mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #19497 -- Refactored testing docs.
Thanks Tim Graham for the review and suggestions.
This commit is contained in:
@@ -1036,7 +1036,7 @@ test <app or test identifier>
|
||||
|
||||
.. django-admin:: test
|
||||
|
||||
Runs tests for all installed models. See :doc:`/topics/testing` for more
|
||||
Runs tests for all installed models. See :doc:`/topics/testing/index` for more
|
||||
information.
|
||||
|
||||
.. django-admin-option:: --failfast
|
||||
@@ -1072,7 +1072,7 @@ For example, this command::
|
||||
|
||||
...would perform the following steps:
|
||||
|
||||
1. Create a test database, as described in :doc:`/topics/testing`.
|
||||
1. Create a test database, as described in :ref:`the-test-database`.
|
||||
2. Populate the test database with fixture data from the given fixtures.
|
||||
(For more on fixtures, see the documentation for ``loaddata`` above.)
|
||||
3. Runs the Django development server (as in ``runserver``), pointed at
|
||||
@@ -1080,7 +1080,7 @@ For example, this command::
|
||||
|
||||
This is useful in a number of ways:
|
||||
|
||||
* When you're writing :doc:`unit tests </topics/testing>` of how your views
|
||||
* When you're writing :doc:`unit tests </topics/testing/overview>` of how your views
|
||||
act with certain fixture data, you can use ``testserver`` to interact with
|
||||
the views in a Web browser, manually.
|
||||
|
||||
|
||||
@@ -562,7 +562,7 @@ If the default value (``None``) is used with the SQLite database engine, the
|
||||
tests will use a memory resident database. For all other database engines the
|
||||
test database will use the name ``'test_' + DATABASE_NAME``.
|
||||
|
||||
See :doc:`/topics/testing`.
|
||||
See :ref:`the-test-database`.
|
||||
|
||||
.. setting:: TEST_CREATE
|
||||
|
||||
@@ -1982,9 +1982,7 @@ TEST_RUNNER
|
||||
Default: ``'django.test.simple.DjangoTestSuiteRunner'``
|
||||
|
||||
The name of the class to use for starting the test suite. See
|
||||
:doc:`/topics/testing`.
|
||||
|
||||
.. _Testing Django Applications: ../testing/
|
||||
:ref:`other-testing-frameworks`.
|
||||
|
||||
.. setting:: THOUSAND_SEPARATOR
|
||||
|
||||
|
||||
@@ -476,7 +476,7 @@ Test signals
|
||||
.. module:: django.test.signals
|
||||
:synopsis: Signals sent during testing.
|
||||
|
||||
Signals only sent when :doc:`running tests </topics/testing>`.
|
||||
Signals only sent when :ref:`running tests <running-tests>`.
|
||||
|
||||
setting_changed
|
||||
---------------
|
||||
|
||||
Reference in New Issue
Block a user