Skip to content

Commit

Permalink
Remove cloud config fixture [(#887)](#887)
Browse files Browse the repository at this point in the history
* Remove cloud config fixture

* Fix client secrets

* Fix bigtable instance
  • Loading branch information
Jon Wayne Parrott authored and danoscarmike committed Jul 31, 2020
1 parent f357595 commit 35cdaff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions translation/samples/snippets/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
import snippets


def test_detect_language(cloud_config, capsys):
def test_detect_language(capsys):
snippets.detect_language('Hæ sæta')
out, _ = capsys.readouterr()
assert 'is' in out


def test_list_languages(cloud_config, capsys):
def test_list_languages(capsys):
snippets.list_languages()
out, _ = capsys.readouterr()
assert 'Icelandic (is)' in out


def test_list_languages_with_target(cloud_config, capsys):
def test_list_languages_with_target(capsys):
snippets.list_languages_with_target('is')
out, _ = capsys.readouterr()
assert u'íslenska (is)' in out


def test_translate_text(cloud_config, capsys):
def test_translate_text(capsys):
snippets.translate_text('is', 'Hello world')
out, _ = capsys.readouterr()
assert u'Halló heimur' in out

0 comments on commit 35cdaff

Please sign in to comment.