From 364ea7b72776b4a316ae5b52c74b3d45c2b9d19e Mon Sep 17 00:00:00 2001 From: Elizabeth Crowdus Date: Wed, 4 Sep 2019 09:35:32 -0700 Subject: [PATCH 1/2] fix: refactored MP3 file creation test --- .../cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py b/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py index bdd8251ba865..8e5f0302cf8e 100644 --- a/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py +++ b/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py @@ -107,12 +107,6 @@ def test_tts_standard(capsys): # Assert audio file generated assert os.path.isfile(outfile) - - # Assert audio file generated correctly - assert filecmp.cmp(outfile, - expected_outfile, - shallow=True) - out, err = capsys.readouterr() # Assert success message printed From 22c5a91f63f77524ac591d66d6ece8a973dc0a74 Mon Sep 17 00:00:00 2001 From: Elizabeth Crowdus Date: Wed, 4 Sep 2019 09:45:52 -0700 Subject: [PATCH 2/2] fix: lint --- .../cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py b/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py index 8e5f0302cf8e..87e8420a2955 100644 --- a/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py +++ b/translate/cloud-client/hybrid_glossaries/hybrid_tutorial_tests.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import filecmp import os import sys @@ -97,7 +96,6 @@ def test_translate_glossary(): def test_tts_standard(capsys): outfile = 'resources/test_standard_text.mp3' - expected_outfile = 'resources/expected_standard_text.mp3' textfile = 'resources/standard_format.txt' with open(textfile, 'r') as f: