tests.unit.gapic.documentai_v1beta3.test_document_processor_service: test_list_processors_pager failed
flaky-bot opened this issue · 3 comments
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: d8aab64
buildURL: Build Status, Sponge
status: failed
Test output
transport_name = 'grpc'def test_list_processors_pager(transport_name: str = "grpc"): client = DocumentProcessorServiceClient( 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_processors), "__call__") as call: # Set the response to a series of pages. call.side_effect = ( document_processor_service.ListProcessorsResponse( processors=[ processor.Processor(), processor.Processor(), processor.Processor(), ], next_page_token="abc", ), document_processor_service.ListProcessorsResponse( processors=[], next_page_token="def", ), document_processor_service.ListProcessorsResponse( processors=[ processor.Processor(), ], next_page_token="ghi", ), document_processor_service.ListProcessorsResponse( processors=[ processor.Processor(), processor.Processor(), ], ), RuntimeError, ) metadata = () metadata = tuple(metadata) + ( gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)), ) pager = client.list_processors(request={}) assert pager._metadata == metadata results = list(pager) assert len(results) == 6
assert all(isinstance(i, processor.Processor) for i in results)
E assert False
E + where False = all(<generator object test_list_processors_pager.. at 0x7f7e7c368350>)tests/unit/gapic/documentai_v1beta3/test_document_processor_service.py:1699: AssertionError
Looks like this issue is flaky. 😟
I'm going to leave this open and stop commenting.
A human should fix and close this.
commit: d8aab64
buildURL: Build Status, Sponge
status: failed
Test output
transport_name = 'grpc'def test_list_processors_pager(transport_name: str = "grpc"): client = DocumentProcessorServiceClient( 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_processors), "__call__") as call: # Set the response to a series of pages. call.side_effect = ( document_processor_service.ListProcessorsResponse( processors=[ processor.Processor(), processor.Processor(), processor.Processor(), ], next_page_token="abc", ), document_processor_service.ListProcessorsResponse( processors=[], next_page_token="def", ), document_processor_service.ListProcessorsResponse( processors=[ processor.Processor(), ], next_page_token="ghi", ), document_processor_service.ListProcessorsResponse( processors=[ processor.Processor(), processor.Processor(), ], ), RuntimeError, ) metadata = () metadata = tuple(metadata) + ( gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)), ) pager = client.list_processors(request={}) assert pager._metadata == metadata results = list(pager) assert len(results) == 6
assert all(isinstance(i, processor.Processor) for i in results)
E assert False
E + where False = all(<generator object test_list_processors_pager.. at 0x7fbb2bc5d750>)tests/unit/gapic/documentai_v1beta3/test_document_processor_service.py:1699: AssertionError