Skip to content

Commit

Permalink
chore: resolve issue with prerelease presubmit [autoapprove] (#417)
Browse files Browse the repository at this point in the history
* chore(python): fix prerelease session [autoapprove]

Source-Link: googleapis/synthtool@1b9ad76
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021

* fix flaky test

* fix api_shortname in .repo-metadata.json

* use unittest.mock

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored and dandhlee committed Nov 18, 2022
1 parent e8b4e94 commit c7d9e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion translation/samples/snippets/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_detect_language(capsys):
def test_list_languages(capsys):
beta_snippets.list_languages(PROJECT_ID)
out, _ = capsys.readouterr()
assert "zh-CN" in out
assert "zh" in out


def test_list_languages_with_target(capsys):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
def test_list_languages(capsys):
translate_v3_get_supported_languages.get_supported_languages(PROJECT_ID)
out, _ = capsys.readouterr()
assert "zh-CN" in out
assert "zh" in out

0 comments on commit c7d9e50

Please sign in to comment.