def test_translate_utf8(capsys): text = u"파인애플 13개" snippets.translate_text("en", text) out, _ = capsys.readouterr() assert u"13 pineapples" in out
def test_translate_text(cloud_config, capsys): snippets.translate_text(cloud_config.api_key, 'is', 'Hello world') out, _ = capsys.readouterr() assert u'Halló heimur' in out
def test_translate_utf8(capsys): text = u'나는 파인애플을 좋아한다.' snippets.translate_text('en', text) out, _ = capsys.readouterr() assert u'I like pineapple.' in out
def test_translate_text(capsys): snippets.translate_text("is", "Hello world") out, _ = capsys.readouterr() assert u"Halló heimur" in out
def test_translate_text(capsys): snippets.translate_text('is', 'Hello world') out, _ = capsys.readouterr() assert u'Halló heimur' in out
def test_translate_utf8(capsys): text = u'나는 파인애플을 좋아한다.' snippets.translate_text('en', text) out, _ = capsys.readouterr() assert u'I like pineapples.' in out
def ML_transform(): model.insert_en(request.form['string']) model.insert_fr(translate_text(target1, model.en_string)) model.insert_it(translate_text(target2, model.en_string)) return render_template('done.html', model = model)
def test_translate_utf8(capsys): text = u'파인애플 13개' snippets.translate_text('en', text) out, _ = capsys.readouterr() assert u'13 pineapples' in out