PyDocs

Nav

Development Tools

Mock._get_child_mock

  • Mock._get_child_mock(**kw)
Create the child mocks for attributes and return value.
By default child mocks will be the same type as the parent.
Subclasses of Mock may want to override this to customize the way
child mocks are made.

For non-callable mocks the callable variant will be used (rather than
any custom subclass).
0 Examples
No examples for unittest.mock/Mock._get_child_mock.
See Also
No see-alsos for unittest.mock/Mock._get_child_mock
0 Notes
No notes for Mock._get_child_mock