Test output transport_name = 'grpc'
def test_list_analyses_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_analyses), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
resources.Analysis(),
resources.Analysis(),
],
next_page_token="abc",
),
contact_center_insights.ListAnalysesResponse(
analyses=[],
next_page_token="def",
),
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
],
next_page_token="ghi",
),
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
resources.Analysis(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_analyses(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.Analysis) for i in results)
E assert False
E + where False = all(<generator object test_list_analyses_pager.. at 0x7f76c1e61b60>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:2956: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_analyses_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_analyses), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
resources.Analysis(),
resources.Analysis(),
],
next_page_token="abc",
),
contact_center_insights.ListAnalysesResponse(
analyses=[],
next_page_token="def",
),
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
],
next_page_token="ghi",
),
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
resources.Analysis(),
],
),
RuntimeError,
)
async_pager = await client.list_analyses(
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, resources.Analysis) for i in responses)
E assert False
E + where False = all(<generator object test_list_analyses_async_pager.. at 0x7fa1bfa90e40>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:3047: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_phrase_matchers_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_phrase_matchers),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
next_page_token="abc",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[],
next_page_token="def",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
],
next_page_token="ghi",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
),
RuntimeError,
)
async_pager = await client.list_phrase_matchers(
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, resources.PhraseMatcher) for i in responses)
E assert False
E + where False = all(<generator object test_list_phrase_matchers_async_pager.. at 0x7f76c20020a0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:7171: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_phrase_matchers_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_phrase_matchers),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
next_page_token="abc",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[],
next_page_token="def",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
],
next_page_token="ghi",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
),
RuntimeError,
)
async_pager = await client.list_phrase_matchers(
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, resources.PhraseMatcher) for i in responses)
E assert False
E + where False = all(<generator object test_list_phrase_matchers_async_pager.. at 0x7fa1bc3a63c0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:7171: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_conversations_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_conversations),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListConversationsResponse(
conversations=[
resources.Conversation(),
resources.Conversation(),
resources.Conversation(),
],
next_page_token="abc",
),
contact_center_insights.ListConversationsResponse(
conversations=[],
next_page_token="def",
),
contact_center_insights.ListConversationsResponse(
conversations=[
resources.Conversation(),
],
next_page_token="ghi",
),
contact_center_insights.ListConversationsResponse(
conversations=[
resources.Conversation(),
resources.Conversation(),
],
),
RuntimeError,
)
async_pager = await client.list_conversations(
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, resources.Conversation) for i in responses)
E assert False
E + where False = all(<generator object test_list_conversations_async_pager.. at 0x7f76c1e60890>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:1923: AssertionError
The following release PRs may have failed:
#224 - The release job was triggered, but has not reported back success.
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_views_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_views), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
resources.View(),
],
next_page_token="abc",
),
contact_center_insights.ListViewsResponse(
views=[],
next_page_token="def",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
],
next_page_token="ghi",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
],
),
RuntimeError,
)
async_pager = await client.list_views(
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, resources.View) for i in responses)
E assert False
E + where False = all(<generator object test_list_views_async_pager.. at 0x7f76c1f35070>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:9306: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_views_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_views), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
resources.View(),
],
next_page_token="abc",
),
contact_center_insights.ListViewsResponse(
views=[],
next_page_token="def",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
],
next_page_token="ghi",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
],
),
RuntimeError,
)
async_pager = await client.list_views(
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, resources.View) for i in responses)
E assert False
E + where False = all(<generator object test_list_views_async_pager.. at 0x7eff96050750>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:9306: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output transport_name = 'grpc'
def test_list_views_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_views), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
resources.View(),
],
next_page_token="abc",
),
contact_center_insights.ListViewsResponse(
views=[],
next_page_token="def",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
],
next_page_token="ghi",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_views(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.View) for i in results)
E assert False
E + where False = all(<generator object test_list_views_pager.. at 0x7f76c1e63ca0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:9215: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output transport_name = 'grpc'
def test_list_views_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_views), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
resources.View(),
],
next_page_token="abc",
),
contact_center_insights.ListViewsResponse(
views=[],
next_page_token="def",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
],
next_page_token="ghi",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_views(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.View) for i in results)
E assert False
E + where False = all(<generator object test_list_views_pager.. at 0x7fa1bc3a67b0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:9215: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output transport_name = 'grpc'
def test_list_phrase_matchers_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_phrase_matchers), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
next_page_token="abc",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[],
next_page_token="def",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
],
next_page_token="ghi",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_phrase_matchers(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.PhraseMatcher) for i in results)
E assert False
E + where False = all(<generator object test_list_phrase_matchers_pager.. at 0x7fa1bf4062e0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:7076: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output transport_name = 'grpc'
def test_list_phrase_matchers_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_phrase_matchers), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
next_page_token="abc",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[],
next_page_token="def",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
],
next_page_token="ghi",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_phrase_matchers(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.PhraseMatcher) for i in results)
E assert False
E + where False = all(<generator object test_list_phrase_matchers_pager.. at 0x7f76c1f36420>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:7076: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output transport_name = 'grpc'
def test_list_views_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_views), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
resources.View(),
],
next_page_token="abc",
),
contact_center_insights.ListViewsResponse(
views=[],
next_page_token="def",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
],
next_page_token="ghi",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_views(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.View) for i in results)
E assert False
E + where False = all(<generator object test_list_views_pager.. at 0x7eff976c5350>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:9215: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_views_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_views), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
resources.View(),
],
next_page_token="abc",
),
contact_center_insights.ListViewsResponse(
views=[],
next_page_token="def",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
],
next_page_token="ghi",
),
contact_center_insights.ListViewsResponse(
views=[
resources.View(),
resources.View(),
],
),
RuntimeError,
)
async_pager = await client.list_views(
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, resources.View) for i in responses)
E assert False
E + where False = all(<generator object test_list_views_async_pager.. at 0x7fa1bc3a6740>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:9306: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output transport_name = 'grpc'
def test_list_conversations_pager(transport_name: str = "grpc"):
client = ContactCenterInsightsClient(
credentials=ga_credentials.AnonymousCredentials,
transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_conversations), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListConversationsResponse(
conversations=[
resources.Conversation(),
resources.Conversation(),
resources.Conversation(),
],
next_page_token="abc",
),
contact_center_insights.ListConversationsResponse(
conversations=[],
next_page_token="def",
),
contact_center_insights.ListConversationsResponse(
conversations=[
resources.Conversation(),
],
next_page_token="ghi",
),
contact_center_insights.ListConversationsResponse(
conversations=[
resources.Conversation(),
resources.Conversation(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_conversations(request={})
assert pager._metadata == metadata
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, resources.Conversation) for i in results)
E assert False
E + where False = all(<generator object test_list_conversations_pager.. at 0x7f76c24302e0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:1828: AssertionError
An Insights' customer requested oncall to add docstring to all Python code samples.
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_phrase_matchers_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_phrase_matchers),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
next_page_token="abc",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[],
next_page_token="def",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
],
next_page_token="ghi",
),
contact_center_insights.ListPhraseMatchersResponse(
phrase_matchers=[
resources.PhraseMatcher(),
resources.PhraseMatcher(),
],
),
RuntimeError,
)
async_pager = await client.list_phrase_matchers(
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, resources.PhraseMatcher) for i in responses)
E assert False
E + where False = all(<generator object test_list_phrase_matchers_async_pager.. at 0x7eff9652f050>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:7171: AssertionError
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: 0f41492
buildURL: Build Status , Sponge
status: failed
Test output @pytest.mark.asyncio
async def test_list_analyses_async_pager():
client = ContactCenterInsightsAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_analyses), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
resources.Analysis(),
resources.Analysis(),
],
next_page_token="abc",
),
contact_center_insights.ListAnalysesResponse(
analyses=[],
next_page_token="def",
),
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
],
next_page_token="ghi",
),
contact_center_insights.ListAnalysesResponse(
analyses=[
resources.Analysis(),
resources.Analysis(),
],
),
RuntimeError,
)
async_pager = await client.list_analyses(
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, resources.Analysis) for i in responses)
E assert False
E + where False = all(<generator object test_list_analyses_async_pager.. at 0x7f76c1ed2dc0>)
tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py:3047: AssertionError
Recommend Projects
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
Recommend Topics
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
Recommend Org
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.
Jobs
Jooble
Copyright ยฉ 2024 GithubHelp โค๏ธ Mail to me