Skip to content

Commit 3a1f71b

Browse files
engelkebusunkim96
authored andcommitted
Test form of result only, not contents [(#1866)](GoogleCloudPlatform/python-docs-samples#1866)
1 parent 0bdcc40 commit 3a1f71b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-speech/samples/snippets/beta_snippets_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def test_transcribe_diarization(capsys):
5050
transcribe_file_with_diarization()
5151
out, err = capsys.readouterr()
5252

53-
assert "word: 'here', speaker_tag: 1" in out
53+
assert "word:" in out
54+
assert "speaker_tag:" in out
5455

5556

5657
def test_transcribe_multichannel_file(capsys):

0 commit comments

Comments
 (0)