google-ads-python
google-ads-python copied to clipboard
Gold tests for utils
…v19 compatibility
This commit introduces a test suite for the utility modules located in the examples/utils/ directory.
Key changes:
- Created a new test directory:
examples/utils/tests/. - Added
examples/utils/tests/__init__.py. - Added
examples/utils/tests/test_example_helpers.pywith unit tests forget_printable_datetimeandget_image_bytes_from_urlusing theunittestframework andunittest.mock. - Verified that the existing
google-adsclient library (v26.1.0) already supports Google Ads API v19, so no direct dependency changes for API versioning were required. - Updated
noxfile.py: Modified theTEST_COMMANDforunittest discoverto scan from the project root (-s .) instead of just the top-leveltestsdirectory. This ensures the new tests inexamples/utils/tests/are discovered and executed by the standardnoxtesting sessions. - Adjusted the import statement in
test_example_helpers.pytofrom examples.utils import example_helpersto ensure correct module resolution when tests are run from the project root.