summaryrefslogtreecommitdiff
path: root/docs
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:08:53 +0200
commit5ca58ce3d0d254752caa19e96055f54feadd5582 (patch)
treeed82b9c2f0532e4c8d7b43f0893ed543e7dfb6bd /docs
parentb3bb7230e1225861b5c1f08931f2d82c2b04133a (diff)
[5.2.x] Corrected assertNumQueries() example in docs/topics/testing/tools.txt.
Backport of dca8284a376128c64bd0e0792ad12391ae3e7202 from main.
Diffstat (limited to 'docs')
-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 dba2a9cce8..431fb05ebf 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1950,7 +1950,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::