Skip to content

Commit dca8284

Browse files
adamzapsarahboyce
authored andcommitted
Corrected assertNumQueries() example in docs/topics/testing/tools.txt.
1 parent 8914f47 commit dca8284

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/topics/testing/tools.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ your test suite.
18951895
If a ``"using"`` key is present in ``kwargs`` it is used as the database
18961896
alias for which to check the number of queries::
18971897

1898-
self.assertNumQueries(7, using="non_default_db")
1898+
self.assertNumQueries(7, my_function, using="non_default_db")
18991899

19001900
If you wish to call a function with a ``using`` parameter you can do it by
19011901
wrapping the call with a ``lambda`` to add an extra parameter::

0 commit comments

Comments
 (0)