gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited in generated tests

Open parthea opened this issue 1 year ago • 0 comments

The async generated unit tests emit warning RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited

tests/unit/gapic/showcase_v1beta1/test_messaging.py::test_search_blurbs_async_use_cached_wrapped_rpc
  /home/runner/work/gapic-generator-python/gapic-generator-python/.nox/showcase_unit-3-12/lib/python3.12/site-packages/google/api_core/operation_async.py:126: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    if self._operation.HasField("response"):

See build log here from PR https://github.com/googleapis/gapic-generator-python/pull/2045

parthea avatar Jun 20 '24 16:06 parthea