mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Minor docstring / docs corrections for unittest.mock
This commit is contained in:
parent
656319e58d
commit
0682a0c0a9
3 changed files with 11 additions and 11 deletions
|
|
@ -99,7 +99,7 @@ by looking at the return value of the mocked class.
|
|||
In the example below we have a function `some_function` that instantiates `Foo`
|
||||
and calls a method on it. The call to `patch` replaces the class `Foo` with a
|
||||
mock. The `Foo` instance is the result of calling the mock, so it is configured
|
||||
by modify the mock :attr:`~Mock.return_value`.
|
||||
by modifying the mock :attr:`~Mock.return_value`.
|
||||
|
||||
>>> def some_function():
|
||||
... instance = module.Foo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue