pylint fixes
This commit is contained in:
parent
78b87fd940
commit
997fd5437e
6 changed files with 13 additions and 8 deletions
|
@ -17,16 +17,18 @@ root.addHandler(handler)
|
|||
api = FloweryAPI(FloweryAPIConfig())
|
||||
|
||||
async def test_get_voices():
|
||||
"""Test the get_voices method"""
|
||||
async for voice in api.get_voices():
|
||||
if 'en' in voice.language.code:
|
||||
api.config.logger.info(voice)
|
||||
|
||||
async def test_get_tts():
|
||||
"""Test the get_tts method"""
|
||||
tts = await api.get_tts(text="BLAST HIM!", voice="191c5adc-a092-5eea-b4ff-ce01f66153ae")
|
||||
try:
|
||||
with open('test.mp3', 'wb') as f:
|
||||
f.write(tts)
|
||||
except Exception as e:
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
api.config.logger.error(e, exc_info=True)
|
||||
long_string = 'a' * 2049
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue