summaryrefslogtreecommitdiff
path: root/docs/topics/testing/tools.txt
diff options
context:
space:
mode:
authorfaishalmanzar <faishalmanzar@gmail.com>2023-09-29 03:26:10 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-10-02 11:49:00 +0200
commit25a614639fe524aa1e9a97b1aee32c54a8fe310e (patch)
treea686c09d69223645b559e40395d13eee3b8f3456 /docs/topics/testing/tools.txt
parente60fe3bb05d3db3e7789458d05974c6761469701 (diff)
[5.0.x] Fixed #32602 -- Clarified wording of TestCase class.
Backport of f4e72e6523e6968d9628dfbff914ab57dbf19e6b from main
Diffstat (limited to 'docs/topics/testing/tools.txt')
-rw-r--r--docs/topics/testing/tools.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index a9373ff108..a415097c56 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1231,8 +1231,8 @@ Fixture loading
.. attribute:: TransactionTestCase.fixtures
-A test case for a database-backed website isn't much use if there isn't any
-data in the database. Tests are more readable and it's more maintainable to
+A test case class for a database-backed website isn't much use if there isn't
+any data in the database. Tests are more readable and it's more maintainable to
create objects using the ORM, for example in :meth:`TestCase.setUpTestData`,
however, you can also use :ref:`fixtures <fixtures-explanation>`.
@@ -1327,9 +1327,9 @@ For example::
def test_index_page_view(self):
call_some_test_code()
-This test case will flush the ``default`` and ``other`` test databases before
-running ``test_index_page_view``. You can also use ``'__all__'`` to specify
-that all of the test databases must be flushed.
+This test case class will flush the ``default`` and ``other`` test databases
+before running ``test_index_page_view``. You can also use ``'__all__'`` to
+specify that all of the test databases must be flushed.
The ``databases`` flag also controls which databases the
:attr:`TransactionTestCase.fixtures` are loaded into. By default, fixtures are
@@ -1965,7 +1965,7 @@ you might label fast or slow tests::
def test_slow_but_core(self):
...
-You can also tag a test case::
+You can also tag a test case class::
@tag("slow", "core")
class SampleTestCase(TestCase):