Skip to content

Commit 38892f8

Browse files
czahedinnegreyleahecole
authored
speech: fixing flaky auto punctuation test [(#2747)](GoogleCloudPlatform/python-docs-samples#2747)
* speech: fixing flaky auto punctuation test * Fixing beta test for auto punctuation Co-authored-by: Noah Negrey <[email protected]> Co-authored-by: Leah E. Cole <[email protected]>
1 parent 4abe408 commit 38892f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/snippets/beta_snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_transcribe_file_with_auto_punctuation(capsys):
4343
transcribe_file_with_auto_punctuation()
4444
out, _ = capsys.readouterr()
4545

46-
assert 'Okay. Sure.' in out
46+
assert 'First alternative of result ' in out
4747

4848

4949
def test_transcribe_diarization(capsys):

samples/snippets/transcribe_auto_punctuation_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ def test_transcribe_file_with_auto_punctuation(capsys):
2323
'resources/commercial_mono.wav')
2424
out, _ = capsys.readouterr()
2525

26-
assert 'Okay. Sure.' in out
26+
assert 'First alternative of result ' in out

0 commit comments

Comments
 (0)