Skip to content

Commit

Permalink
test(samples): change string for utf8 translation (#48)
Browse files Browse the repository at this point in the history
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  πŸ¦•
  • Loading branch information
busunkim96 authored and dandhlee committed Nov 18, 2022
1 parent f998ab1 commit b666228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translation/samples/snippets/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b666228

Please sign in to comment.