From a7c982cc1214479f38201b76ed1248225b560a93 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 11 Aug 2020 10:04:04 -0700 Subject: [PATCH] test(samples): change string for utf8 translation (#48) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-translate/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #46 πŸ¦• --- .../google-cloud-translate/samples/snippets/snippets_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-translate/samples/snippets/snippets_test.py b/packages/google-cloud-translate/samples/snippets/snippets_test.py index 6d63759daeee..ab489dfa0adf 100644 --- a/packages/google-cloud-translate/samples/snippets/snippets_test.py +++ b/packages/google-cloud-translate/samples/snippets/snippets_test.py @@ -43,7 +43,7 @@ def test_translate_text(capsys): def test_translate_utf8(capsys): - text = u'λ‚˜λŠ” νŒŒμΈμ• ν”Œμ„ μ’‹μ•„ν•œλ‹€.' + text = u'νŒŒμΈμ• ν”Œ 13개' snippets.translate_text('en', text) out, _ = capsys.readouterr() - assert u'I like pineapple' in out + assert u'13 pineapples' in out