google-ads-python icon indicating copy to clipboard operation
google-ads-python copied to clipboard

Gold test for reporting

Open bobhancockg opened this issue 9 months ago • 0 comments

This commit introduces a test suite for the parallel_report_download.py script.

The tests cover the following:

  • Correct generation of inputs for report downloads.
  • Successful and failed report requests, including the retry mechanism for API errors.
  • The main function's logic for handling parallel processing (via mocked multiprocessing) and aggregation of results.

The tests are located in examples/reporting/tests/ and utilize mocking to simulate Google Ads API interactions, ensuring they run without actual API calls and are specific to API version v19, as used by the script.

bobhancockg avatar Jun 02 '25 10:06 bobhancockg