PyDocs

Nav

Development Tools

ThreadingMock.wait_until_any_call_with

  • ThreadingMock.wait_until_any_call_with(*args, **kwargs)
Wait until the mock object is called with given args.

Waits for the timeout in seconds provided in the constructor.
1 Example
>>> mock = ThreadingMock()
>>> thread = threading.Thread(target=mock, args=("arg1", "arg2",), kwargs={"arg": "thing"})
>>> thread.start()
>>> mock.wait_until_any_call_with("arg1", "arg2", arg="thing")
>>> thread.join()
from the Python docs
See Also
No see-alsos for unittest.mock/ThreadingMock.wait_until_any_call_with
0 Notes
No notes for ThreadingMock.wait_until_any_call_with