Skip to content

Commit d868d9c

Browse files
committed
fixes some unit tests
1 parent 946ca32 commit d868d9c

File tree

35 files changed

+37
-21
lines changed

35 files changed

+37
-21
lines changed

tests/daily_test/test_daily_async_listen_rest_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from tests.utils import save_metadata_string
1414

15-
MODEL = "2-general-nova"
15+
MODEL = "general-nova-3"
1616

1717
# response constants
1818
FILE1 = "preamble-rest.wav"
@@ -84,7 +84,7 @@ async def test_daily_async_listen_rest_file(filename, options, expected_output):
8484
save_metadata_string(file_options, options.to_json())
8585
save_metadata_string(file_resp, response.to_json())
8686

87-
# Check the response
87+
# Original assertion
8888
for key, value in response.metadata.model_info.items():
8989
assert (
9090
value.name == MODEL

tests/daily_test/test_daily_async_listen_rest_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from tests.utils import save_metadata_string
1414

15-
MODEL = "2-general-nova"
15+
MODEL = "general-nova-3"
1616

1717
# response constants
1818
URL1 = {

tests/daily_test/test_daily_async_listen_websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from tests.utils import save_metadata_string
2121

22-
MODEL = "2-general-nova"
22+
MODEL = "general-nova-3"
2323

2424
# response constants
2525
FILE1 = "testing-websocket.wav"

tests/daily_test/test_daily_async_speak_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from tests.utils import save_metadata_string
1414

1515
TTS_MODEL = "aura-asteria-en"
16-
STT_MODEL = "2-general-nova"
16+
STT_MODEL = "general-nova-3"
1717

1818
# response constants
1919
TEXT1 = "Hello, world."

tests/daily_test/test_daily_listen_rest_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from tests.utils import save_metadata_string
1414

15-
MODEL = "2-general-nova"
15+
MODEL = "general-nova-3"
1616

1717
# response constants
1818
FILE1 = "preamble-rest.wav"

tests/daily_test/test_daily_listen_rest_url.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
from tests.utils import save_metadata_string
1414

15-
MODEL = "2-general-nova"
15+
MODEL = "general-nova-3"
1616

1717
# response constants
1818
URL1 = {
1919
"url": "https://static.deepgram.com/examples/Bueller-Life-moves-pretty-fast.wav"
2020
}
21-
URL1_SMART_FORMAT = "Yep. I said it before and I'll say it again. Life moves pretty fast. You don't stop and look around once in a while, you could miss it."
22-
URL1_SUMMARIZE = "Yep. I said it before and I'll say it again. Life moves pretty fast. You don't stop and look around once in a while, you could miss it."
21+
URL1_SMART_FORMAT = "Yep. I said it before, and I'll say it again. Life moves pretty fast. You don't stop and look around once in a while, you could miss it."
22+
URL1_SUMMARIZE = "Yep. I said it before, and I'll say it again. Life moves pretty fast. You don't stop and look around once in a while, you could miss it."
2323

2424
# Create a list of tuples to store the key-value pairs
2525
input_output = [

tests/daily_test/test_daily_listen_websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from tests.utils import save_metadata_string
2121

22-
MODEL = "2-general-nova"
22+
MODEL = "general-nova-3"
2323

2424
# response constants
2525
FILE1 = "testing-websocket.wav"

tests/daily_test/test_daily_speak_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from tests.utils import save_metadata_string
1414

1515
TTS_MODEL = "aura-asteria-en"
16-
STT_MODEL = "2-general-nova"
16+
STT_MODEL = "general-nova-3"
1717

1818
# response constants
1919
TEXT1 = "Hello, world."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"actual": "Yep. I said it before, and I'll say it again. Life moves pretty fast. You don't stop and look around once in a while, you could miss it.", "expected": ["Yep. I said it before and I'll say it again. Life moves pretty fast. You don't stop and look around once in a while, you could miss it."]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"model": "nova-3", "smart_format": true, "summarize": "v2"}

0 commit comments

Comments
 (0)