From ff26876806b23bed09e2cea5b31702554ddb5ed5 Mon Sep 17 00:00:00 2001 From: jkroll-deepgram Date: Wed, 12 Jul 2023 10:44:48 -0500 Subject: [PATCH] nit: switch rogue tabs to spaces --- tests/test_transcription.py | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/test_transcription.py b/tests/test_transcription.py index 440fceb5..17faf466 100644 --- a/tests/test_transcription.py +++ b/tests/test_transcription.py @@ -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 @@ -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") @@ -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")