docs(samples): add batch mode sample and test#10458
Merged
Merged
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
rsamborski
approved these changes
Jul 25, 2023
rsamborski
left a comment
Member
There was a problem hiding this comment.
Approved with couple nits.
| ) | ||
| out, _ = capsys.readouterr() | ||
| job_name_prefix = f"projects/{project_number}/locations/{location}/jobs/" | ||
| assert job_name_prefix in out |
Member
There was a problem hiding this comment.
suggestion: please consider using returned value for testing instead of output parsing
| str_slice = out.split("/") | ||
| job_id = str_slice[len(str_slice) - 1].rstrip("\n") | ||
| job_name = f"projects/{project_number}/locations/{location}/jobs/{job_id}" | ||
| assert job_name in out |
kweinmeister
approved these changes
Jul 25, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
b:288111390
Please merge on approval.