Skip to content

Commit c7d9e50

Browse files
gcf-owl-bot[bot]parthea
authored andcommitted
chore: resolve issue with prerelease presubmit [autoapprove] (#417)
* 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 <[email protected]>
1 parent e8b4e94 commit c7d9e50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

translation/samples/snippets/beta_snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_detect_language(capsys):
9191
def test_list_languages(capsys):
9292
beta_snippets.list_languages(PROJECT_ID)
9393
out, _ = capsys.readouterr()
94-
assert "zh-CN" in out
94+
assert "zh" in out
9595

9696

9797
def test_list_languages_with_target(capsys):

translation/samples/snippets/translate_v3_get_supported_languages_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
def test_list_languages(capsys):
2424
translate_v3_get_supported_languages.get_supported_languages(PROJECT_ID)
2525
out, _ = capsys.readouterr()
26-
assert "zh-CN" in out
26+
assert "zh" in out

0 commit comments

Comments
 (0)