From ebf29d34527270cda812e8727aa551ea29cec39c Mon Sep 17 00:00:00 2001 From: Cameron Zahedi Date: Thu, 23 Jan 2020 14:44:28 -0700 Subject: [PATCH 1/2] speech: fixing flaky auto punctuation test --- speech/cloud-client/transcribe_auto_punctuation_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech/cloud-client/transcribe_auto_punctuation_test.py b/speech/cloud-client/transcribe_auto_punctuation_test.py index 19db1e9c9d39..e42018d47a6e 100644 --- a/speech/cloud-client/transcribe_auto_punctuation_test.py +++ b/speech/cloud-client/transcribe_auto_punctuation_test.py @@ -23,4 +23,4 @@ def test_transcribe_file_with_auto_punctuation(capsys): 'resources/commercial_mono.wav') out, _ = capsys.readouterr() - assert 'Okay. Sure.' in out + assert 'First alternative of result ' in out From 6163689fce153d3757da5c0f76ad609a574981af Mon Sep 17 00:00:00 2001 From: Cameron Zahedi Date: Tue, 28 Jan 2020 10:26:57 -0700 Subject: [PATCH 2/2] Fixing beta test for auto punctuation --- speech/cloud-client/beta_snippets_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech/cloud-client/beta_snippets_test.py b/speech/cloud-client/beta_snippets_test.py index 44b421bb5759..367d2ccc4b1b 100644 --- a/speech/cloud-client/beta_snippets_test.py +++ b/speech/cloud-client/beta_snippets_test.py @@ -43,7 +43,7 @@ def test_transcribe_file_with_auto_punctuation(capsys): transcribe_file_with_auto_punctuation() out, _ = capsys.readouterr() - assert 'Okay. Sure.' in out + assert 'First alternative of result ' in out def test_transcribe_diarization(capsys):