Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
fix: refactored MP3 file creation test for Hybrid glossaries samples …
Browse files Browse the repository at this point in the history
…[(#2379)](GoogleCloudPlatform/python-docs-samples#2379)

* fix: refactored MP3 file creation test

* fix: lint
  • Loading branch information
crowdus authored and danoscarmike committed Jul 31, 2020
1 parent 1a161e7 commit b8b5101
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions samples/snippets/hybrid_glossaries/hybrid_tutorial_tests.py
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import filecmp
import os
import sys

Expand Down Expand Up @@ -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:
Expand All @@ -107,12 +105,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
Expand Down

0 comments on commit b8b5101

Please sign in to comment.