summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorAdam Zapletal <adamzap@gmail.com>2025-08-01 16:58:28 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-08-04 15:07:48 +0200
commitdca8284a376128c64bd0e0792ad12391ae3e7202 (patch)
tree5e0eabfb507e4f7389e96c73983c8a600cb58bc5 /docs/topics/testing
parent8914f4703cf03e2a01683c4ba00f5ae7d3fa449d (diff)
Corrected assertNumQueries() example in docs/topics/testing/tools.txt.
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/tools.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index ce8e3fd821..dfe92f88eb 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1895,7 +1895,7 @@ your test suite.
If a ``"using"`` key is present in ``kwargs`` it is used as the database
alias for which to check the number of queries::
- self.assertNumQueries(7, using="non_default_db")
+ self.assertNumQueries(7, my_function, using="non_default_db")
If you wish to call a function with a ``using`` parameter you can do it by
wrapping the call with a ``lambda`` to add an extra parameter::