コード例 #1
0
def test_get_glossary(capsys, glossary):
    beta_snippets.get_glossary(PROJECT_ID, glossary)
    out, _ = capsys.readouterr()
    assert glossary in out
    assert "gs://cloud-samples-data/translation/glossary.csv" in out
コード例 #2
0
def test_get_glossary(capsys, glossary):
    beta_snippets.get_glossary(PROJECT_ID, glossary)
    out, _ = capsys.readouterr()
    assert glossary in out
    assert 'gs://cloud-samples-data/translation/glossary.csv' in out