Wait until the mock object is called. `timeout` - time to wait for in seconds, waits forever otherwise. Defaults to the constructor provided timeout. Use None to block undefinetively.
>>> mock = ThreadingMock() >>> thread = threading.Thread(target=mock) >>> thread.start() >>> mock.wait_until_called(timeout=1) >>> thread.join()
unittest.mock/ThreadingMock.wait_until_called
ThreadingMock.wait_until_called