Skip to content

Commit b9f021d

Browse files
authored
Test form of result only, not contents [(#1866)](GoogleCloudPlatform/python-docs-samples#1866)
1 parent c5c7b96 commit b9f021d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)