Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: MP3 file test for Text-to-Speech SSML addresses #2378

Merged
merged 4 commits into from
Sep 4, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from tts import text_to_ssml
from tts import ssml_to_audio
from ssml_addresses import text_to_ssml
from ssml_addresses import ssml_to_audio

import filecmp
import os
Expand All @@ -39,16 +39,11 @@ def test_ssml_to_audio(capsys):

# Assert audio file generated
ssml_to_audio(input_ssml, 'test_example.mp3')
assert os.path.isfile('test_example.mp3')

# Assert audio file generated correctly
assert filecmp.cmp('test_example.mp3',
'resources/expected_example.mp3',
crowdus marked this conversation as resolved.
Show resolved Hide resolved
shallow=True)
out, err = capsys.readouterr()

# Delete test file
os.remove("test_example.mp3")

# Assert success message printed
# Assert MP3 file created
assert os.path.isfile('test_example.mp3')
assert "Audio content written to file test_example.mp3" in out

# Delete MP3 test file
os.remove("test_example.mp3")
97 changes: 0 additions & 97 deletions texttospeech/ssml_addresses/README.rst

This file was deleted.

19 changes: 0 additions & 19 deletions texttospeech/ssml_addresses/README.rst.in

This file was deleted.

1 change: 0 additions & 1 deletion texttospeech/ssml_addresses/requirements.txt

This file was deleted.