tests.unit.gapic.dialogflowcx_v3.test_environments: test_lookup_environment_history_async_pager failed
flaky-bot opened this issue · 4 comments
flaky-bot commented
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the flakybot: quiet
label and
I will stop commenting.
commit: 7756cb0
buildURL: Build Status, Sponge
status: failed
Test output
@pytest.mark.asyncio async def test_lookup_environment_history_async_pager(): client = EnvironmentsAsyncClient( credentials=ga_credentials.AnonymousCredentials, )# Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( type(client.transport.lookup_environment_history), "__call__", new_callable=mock.AsyncMock, ) as call: # Set the response to a series of pages. call.side_effect = ( environment.LookupEnvironmentHistoryResponse( environments=[ environment.Environment(), environment.Environment(), environment.Environment(), ], next_page_token="abc", ), environment.LookupEnvironmentHistoryResponse( environments=[], next_page_token="def", ), environment.LookupEnvironmentHistoryResponse( environments=[ environment.Environment(), ], next_page_token="ghi", ), environment.LookupEnvironmentHistoryResponse( environments=[ environment.Environment(), environment.Environment(), ], ), RuntimeError, ) async_pager = await client.lookup_environment_history( request={}, ) assert async_pager.next_page_token == "abc" responses = [] async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6
assert all(isinstance(i, environment.Environment) for i in responses)
E assert False
E + where False = all(<generator object test_lookup_environment_history_async_pager.. at 0x7f31fe1380b0>)tests/unit/gapic/dialogflowcx_v3/test_environments.py:2456: AssertionError