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 09:12:08 +0200
commitf4e72e6523e6968d9628dfbff914ab57dbf19e6b (patch)
treeffe9051cf778c89de02b1c4892cadd6c3f6c4ee4 /docs/topics/testing/tools.txt
parente99c7d8847e9006f877ab3cea47f1977652af71f (diff)
Fixed #32602 -- Clarified wording of TestCase class.
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 4eaffdb331..16cc7759b3 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1195,8 +1195,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>`.
@@ -1291,9 +1291,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
@@ -1925,7 +1925,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):