unittest.mock.NonCallableMock

class unittest.mock.NonCallableMock(spec=None, wraps=None, name=None, spec_set=None, **kwargs)

A non-callable version of Mock. The constructor parameters have the same meaning of Mock, with the exception of return_value and side_effect which have no meaning on a non-callable mock.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.