Kaydet (Commit) 9953e98e authored tarafından Tim Graham's avatar Tim Graham

Fixed #21701 -- Improved testing doc titles and added testing/tools.txt.

Thanks cjerdonek for the suggestion.
üst a95f74e7
...@@ -13,8 +13,8 @@ The tests cover: ...@@ -13,8 +13,8 @@ The tests cover:
We appreciate any and all contributions to the test suite! We appreciate any and all contributions to the test suite!
The Django tests all use the testing infrastructure that ships with Django for The Django tests all use the testing infrastructure that ships with Django for
testing applications. See :doc:`Testing Django applications testing applications. See :doc:`/topics/testing/overview` for an explanation of
</topics/testing/overview>` for an explanation of how to write new tests. how to write new tests.
.. _running-unit-tests: .. _running-unit-tests:
......
...@@ -281,7 +281,7 @@ correctly in a couple different situations. ...@@ -281,7 +281,7 @@ correctly in a couple different situations.
computer programming, so there's lots of information out there: computer programming, so there's lots of information out there:
* A good first look at writing tests for Django can be found in the * 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) * Dive Into Python (a free online book for beginning Python developers)
includes a great `introduction to Unit Testing`__. includes a great `introduction to Unit Testing`__.
* After reading those, if you want something a little meatier to sink * 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 ...@@ -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 :setting:`EMAIL_PORT` accordingly. For a more detailed discussion of SMTP
server options, see the Python documentation for the :mod:`smtpd` module. server options, see the Python documentation for the :mod:`smtpd` module.
For information about unit-testing the sending of emails in your For information about unit-testing the sending of emails in your application,
application, see the :ref:`topics-testing-email` section of :doc:`Testing see the :ref:`topics-testing-email` section of the testing documentation.
Django applications </topics/testing/overview>`.
...@@ -2,12 +2,6 @@ ...@@ -2,12 +2,6 @@
Testing in Django Testing in Django
================= =================
.. toctree::
:hidden:
overview
advanced
Automated testing is an extremely useful bug-killing tool for the modern 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 Web developer. You can use a collection of tests -- a **test suite** -- to
solve, or avoid, a number of problems: solve, or avoid, a number of problems:
...@@ -28,9 +22,6 @@ it should be doing. ...@@ -28,9 +22,6 @@ it should be doing.
The best part is, it's really easy. 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 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 built in to the Python standard library. This is covered in detail in the
:doc:`overview` document. :doc:`overview` document.
...@@ -38,3 +29,10 @@ built in to the Python standard library. This is covered in detail in the ...@@ -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 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 tools for that kind of integration. They are described in the
:ref:`other-testing-frameworks` section of :doc:`advanced`. :ref:`other-testing-frameworks` section of :doc:`advanced`.
.. toctree::
:maxdepth: 1
overview
tools
advanced
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment