From 5ca58ce3d0d254752caa19e96055f54feadd5582 Mon Sep 17 00:00:00 2001 From: Adam Zapletal Date: Fri, 1 Aug 2025 16:58:28 -0500 Subject: [PATCH] [5.2.x] Corrected assertNumQueries() example in docs/topics/testing/tools.txt. Backport of dca8284a376128c64bd0e0792ad12391ae3e7202 from main. --- docs/topics/testing/tools.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::