Skip to content

Commit 91f08d2

Browse files
google-labs-jules[bot]BenRKarl
authored andcommitted
Fix: Use literal URL in test_upload_image_asset.py success test
This commit corrects an AttributeError in the `test_main_success` method of `examples/misc/tests/test_upload_image_asset.py`. The test was attempting to assert the call to `get_image_bytes_from_url` using `upload_image_asset.IMAGE_URL`, but `IMAGE_URL` is not defined as a module-level constant in the script. The script `upload_image_asset.py` uses a hardcoded URL string directly within its `main` function. The assertion has been updated to use the correct literal URL string: `"https://gaagl.page.link/Eit5"`.
1 parent b8f3e5f commit 91f08d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/misc/tests/test_upload_image_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_main_success(self, mock_print):
5353
upload_image_asset.main(self.mock_client, customer_id)
5454

5555
self.mock_get_image_bytes_from_url.assert_called_once_with(
56-
upload_image_asset.IMAGE_URL
56+
"https://gaagl.page.link/Eit5"
5757
)
5858
self.mock_asset_service.mutate_assets.assert_called_once()
5959

0 commit comments

Comments
 (0)