Skip to content

Commit ac6e6f2

Browse files
committed
Reorder function docs
1 parent bf59464 commit ac6e6f2

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

docs/the-functions.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@
44
The functions
55
=============
66

7-
Stable entrypoints are: :func:`when`, :func:`mock`, :func:`unstub`, :func:`verify`, :func:`spy`. New function introduced in v1 are: :func:`when2`, :func:`expect`, :func:`verifyExpectedInteractions`, :func:`verifyStubbedInvocationsAreUsed`, :func:`patch`, :func:`patch_attr`, :func:`patch_dict`
7+
Stable entrypoints are: :func:`when`, :func:`expect`, :func:`mock`, :func:`unstub`,
8+
:func:`verify`, :func:`spy`.
9+
New function introduced in v1 are: :func:`when2`, :func:`verifyExpectedInteractions`, :func:`verifyStubbedInvocationsAreUsed`, :func:`patch`.
10+
New function introduced in v2 are: :func:`patch_attr`, :func:`patch_dict`
811

912
.. autofunction:: when
10-
.. autofunction:: when2
13+
.. autofunction:: expect
14+
.. autofunction:: mock
1115
.. autofunction:: patch
1216
.. autofunction:: patch_attr
1317
.. autofunction:: patch_dict
14-
.. autofunction:: expect
15-
.. autofunction:: mock
1618
.. autofunction:: unstub
1719
.. autofunction:: forget_invocations
1820
.. autofunction:: spy
1921
.. autofunction:: spy2
22+
.. autofunction:: when2
2023

2124
This looks like a plethora of verification functions, and especially since you often don't need to `verify` at all.
2225

0 commit comments

Comments
 (0)