Skip to content

Commit

Permalink
Remove cloud config fixture [(#887)](GoogleCloudPlatform/python-docs-…
Browse files Browse the repository at this point in the history
…samples#887)

* 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 aadc31f commit 2936865
Showing 1 changed file with 4 additions and 4 deletions.
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 2936865

Please sign in to comment.