Skip to content

Gold test for reporting #1003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Gold test for reporting #1003

wants to merge 1 commit into from

Conversation

bobhancockg
Copy link
Contributor

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.

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 bobhancockg requested a review from a team as a code owner June 2, 2025 10:20
@BenRKarl BenRKarl added the kokoro:run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
@kokoro-team kokoro-team removed the kokoro:run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
@BenRKarl BenRKarl added the kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
@kokoro-team kokoro-team removed the kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants