Skip to content

Commit

Permalink
nit: switch rogue tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroll-deepgram committed Jul 12, 2023
1 parent 7b36571 commit ff26876
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/test_transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def test_transcribe_prerecorded():
Test basic synchronous pre-recorded transcription.
"""
response = deepgram.transcription.sync_prerecorded(
{
{
"url": AUDIO_URL
},
{
"model": "nova",
"smart_format": True,
},
)
{
"model": "nova",
"smart_format": True,
},
)
actual_transcript = response["results"]["channels"][0]["alternatives"][0]["transcript"]
assert actual_transcript == MOCK_TRANSCRIPT

Expand All @@ -36,15 +36,15 @@ def test_transcribe_prerecorded_find_and_replace_string():
Test find-and-replace with a string of one term.
"""
response = deepgram.transcription.sync_prerecorded(
{
{
"url": AUDIO_URL
},
{
"model": "nova",
"smart_format": True,
"replace": "fast:slow",
},
)
{
"model": "nova",
"smart_format": True,
"replace": "fast:slow",
},
)
actual_transcript = response["results"]["channels"][0]["alternatives"][0]["transcript"]
assert actual_transcript == MOCK_TRANSCRIPT.replace("fast", "slow")

Expand All @@ -53,14 +53,14 @@ def test_transcribe_prerecorded_find_and_replace_list():
Test find-and-replace with a list of two terms.
"""
response = deepgram.transcription.sync_prerecorded(
{
{
"url": AUDIO_URL
},
{
"model": "nova",
"smart_format": True,
"replace": ["fast:slow", "miss:snooze"],
},
)
{
"model": "nova",
"smart_format": True,
"replace": ["fast:slow", "miss:snooze"],
},
)
actual_transcript = response["results"]["channels"][0]["alternatives"][0]["transcript"]
assert actual_transcript == MOCK_TRANSCRIPT.replace("fast", "slow").replace("miss", "snooze")

0 comments on commit ff26876

Please sign in to comment.