Skip to content

Commit 216c04e

Browse files
committed
Minor style changes
1 parent e011f48 commit 216c04e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

ivona_api/ivona_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
2+
from __future__ import absolute_import, unicode_literals
33

44
import requests
55
from requests_aws4auth import AWS4Auth

ivona_api/test/test_ivona_api.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
2+
from __future__ import absolute_import, unicode_literals
33

44
import os
55
import 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
)

0 commit comments

Comments
 (0)