Skip to content

Commit

Permalink
no tts test
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Aug 6, 2023
1 parent f931637 commit 651cfb5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions agentcomms/discord/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
model = os.getenv("ELEVENLABS_MODEL")
set_api_key(os.getenv("ELEVENLABS_API_KEY"))

def test_generate_tts():
message = "Hello, world!"
# def test_generate_tts():
# message = "Hello, world!"

file_path = generate_tts(message)
# file_path = generate_tts(message)

# Check that the file path is constructed correctly
assert file_path.startswith("./temp/reply_")
assert file_path.endswith(".mp3")
# # Check that the file path is constructed correctly
# assert file_path.startswith("./temp/reply_")
# assert file_path.endswith(".mp3")

# Check that the file has been created
assert os.path.exists(file_path)
# # Check that the file has been created
# assert os.path.exists(file_path)

print("TTS file generated successfully")
# print("TTS file generated successfully")

# Additional assertions could check the contents of the file or other properties
# # Additional assertions could check the contents of the file or other properties


def test_start_discord_connector(capfd):
Expand Down

0 comments on commit 651cfb5

Please sign in to comment.