File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- from __future__ import unicode_literals
2+ from __future__ import absolute_import , unicode_literals
33
44import requests
55from requests_aws4auth import AWS4Auth
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- from __future__ import unicode_literals
2+ from __future__ import absolute_import , unicode_literals
33
44import os
55import tempfile
@@ -56,8 +56,10 @@ def test_available_voices(auth_keys):
5656 assert len (voices ) > 1
5757
5858 # Make sure that default voice is available
59- assert any ([v ['Name' ] == 'Salli' and v ['Language' ] == 'en-US'
60- for v in voices ])
59+ assert any (
60+ [v ['Name' ] == 'Salli' and v ['Language' ] == 'en-US'
61+ for v in voices ]
62+ )
6163
6264
6365@flaky
@@ -72,8 +74,10 @@ def test_available_voices_with_filter(auth_keys):
7274 assert len (voices ) > 1
7375
7476 # Make sure that default voice is available
75- assert any ([v ['Name' ] == 'Salli' and v ['Language' ] == 'en-US'
76- for v in voices ])
77+ assert any (
78+ [v ['Name' ] == 'Salli' and v ['Language' ] == 'en-US'
79+ for v in voices ]
80+ )
7781
7882
7983@flaky
@@ -102,6 +106,7 @@ def test_text_to_speech_custom_voice(auth_keys):
102106 with pytest .raises (ValueError ):
103107 with tempfile .NamedTemporaryFile () as temp_file :
104108 ivona_api .text_to_speech (
105- str (uuid4 ()), temp_file .name ,
109+ text = str (uuid4 ()),
110+ path = temp_file .name ,
106111 voice_name = str (uuid4 ()),
107112 )
You can’t perform that action at this time.
0 commit comments