Skip to content

Commit 567e053

Browse files
committed
Add docs for side effect feature on spies
1 parent 50f99e5 commit 567e053

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.13.0
2+
------
3+
4+
* The object returned by ``mocker.spy`` now also tracks any side effect
5+
of the spied method/function.
6+
17
1.12.1 (2019-11-20)
28
-------------------
39

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ features with it, like retrieving call count. It also works for class and static
103103
Since version ``1.11``, it is also possible to query the ``return_value`` attribute
104104
to observe what the spied function/method returned.
105105

106+
Since version ``1.13``, it is also possible to query the ``side_effect`` attribute
107+
to observe any exception thrown by the spied function/method.
108+
106109
Stub
107110
----
108111

0 commit comments

Comments
 (0)