Fixed #21701 -- Improved testing doc titles and added testing/tools.txt.
Thanks cjerdonek for the suggestion.
This commit is contained in:
parent
a95f74e707
commit
9953e98e6a
|
@ -13,8 +13,8 @@ The tests cover:
|
|||
We appreciate any and all contributions to the test suite!
|
||||
|
||||
The Django tests all use the testing infrastructure that ships with Django for
|
||||
testing applications. See :doc:`Testing Django applications
|
||||
</topics/testing/overview>` for an explanation of how to write new tests.
|
||||
testing applications. See :doc:`/topics/testing/overview` for an explanation of
|
||||
how to write new tests.
|
||||
|
||||
.. _running-unit-tests:
|
||||
|
||||
|
|
|
@ -281,7 +281,7 @@ correctly in a couple different situations.
|
|||
computer programming, so there's lots of information out there:
|
||||
|
||||
* A good first look at writing tests for Django can be found in the
|
||||
documentation on :doc:`Testing Django applications </topics/testing/overview>`.
|
||||
documentation on :doc:`/topics/testing/overview`.
|
||||
* Dive Into Python (a free online book for beginning Python developers)
|
||||
includes a great `introduction to Unit Testing`__.
|
||||
* After reading those, if you want something a little meatier to sink
|
||||
|
|
|
@ -629,6 +629,5 @@ the email body. You then only need to set the :setting:`EMAIL_HOST` and
|
|||
:setting:`EMAIL_PORT` accordingly. For a more detailed discussion of SMTP
|
||||
server options, see the Python documentation for the :mod:`smtpd` module.
|
||||
|
||||
For information about unit-testing the sending of emails in your
|
||||
application, see the :ref:`topics-testing-email` section of :doc:`Testing
|
||||
Django applications </topics/testing/overview>`.
|
||||
For information about unit-testing the sending of emails in your application,
|
||||
see the :ref:`topics-testing-email` section of the testing documentation.
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
Testing in Django
|
||||
=================
|
||||
|
||||
.. toctree::
|
||||
:hidden:
|
||||
|
||||
overview
|
||||
advanced
|
||||
|
||||
Automated testing is an extremely useful bug-killing tool for the modern
|
||||
Web developer. You can use a collection of tests -- a **test suite** -- to
|
||||
solve, or avoid, a number of problems:
|
||||
|
@ -28,9 +22,6 @@ it should be doing.
|
|||
|
||||
The best part is, it's really easy.
|
||||
|
||||
Where to go from here
|
||||
=====================
|
||||
|
||||
The preferred way to write tests in Django is using the :mod:`unittest` module
|
||||
built in to the Python standard library. This is covered in detail in the
|
||||
:doc:`overview` document.
|
||||
|
@ -38,3 +29,10 @@ built in to the Python standard library. This is covered in detail in the
|
|||
You can also use any *other* Python test framework; Django provides an API and
|
||||
tools for that kind of integration. They are described in the
|
||||
:ref:`other-testing-frameworks` section of :doc:`advanced`.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
overview
|
||||
tools
|
||||
advanced
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue