We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8914f47 commit dca8284Copy full SHA for dca8284
1 file changed
docs/topics/testing/tools.txt
@@ -1895,7 +1895,7 @@ your test suite.
1895
If a ``"using"`` key is present in ``kwargs`` it is used as the database
1896
alias for which to check the number of queries::
1897
1898
- self.assertNumQueries(7, using="non_default_db")
+ self.assertNumQueries(7, my_function, using="non_default_db")
1899
1900
If you wish to call a function with a ``using`` parameter you can do it by
1901
wrapping the call with a ``lambda`` to add an extra parameter::
0 commit comments