File tree Expand file tree Collapse file tree 9 files changed +1354
-13
lines changed
sdk/ai/azure-ai-voicelive Expand file tree Collapse file tree 9 files changed +1354
-13
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "AssetsRepo" : " Azure/azure-sdk-assets" ,
3
+ "AssetsRepoPrefixPath" : " python" ,
4
+ "TagPrefix" : " python/ai/azure-ai-voicelive" ,
5
+ "Tag" : " python/ai/azure-ai-voicelive_9c84c5d9c2"
6
+ }
Original file line number Diff line number Diff line change @@ -637,7 +637,7 @@ def __init__(
637
637
self ._endpoint = endpoint
638
638
raw_scopes = kwargs .pop (
639
639
"credential_scopes" ,
640
- ["https://cognitiveservices .azure.com/.default" ],
640
+ ["https://ai .azure.com/.default" ],
641
641
)
642
642
if isinstance (raw_scopes , str ):
643
643
self .__credential_scopes = [raw_scopes ]
Original file line number Diff line number Diff line change @@ -5,4 +5,7 @@ python-dotenv
5
5
isodate
6
6
websockets
7
7
pyaudio; platform_python_implementation == 'CPython' and python_version < '3.13'
8
- azure.identity
8
+ azure.identity
9
+ pytest-rerunfailures>=13.0
10
+ pytest-asyncio
11
+ soundfile
Original file line number Diff line number Diff line change @@ -72,3 +72,7 @@ exclude = [
72
72
73
73
[tool .setuptools .package-data ]
74
74
pytyped = [" py.typed" ]
75
+
76
+ [tool .pytest .ini_options ]
77
+ asyncio_default_fixture_loop_scope = " function"
78
+ asyncio_mode = " auto"
Original file line number Diff line number Diff line change
1
+ extends :
2
+ template : /eng/pipelines/templates/stages/archetype-sdk-tests.yml
3
+ parameters :
4
+ BuildTargetingString : ' azure-ai-voicelive'
5
+ JobName : chat
6
+ ServiceDirectory : ai
7
+ TestResourceDirectories :
8
+ - ai/azure-ai-voicelive
9
+ EnvVars :
10
+ AZURE_TEST_RUN_LIVE : ' true'
11
+ AZURE_TEST_USE_CLI_AUTH : ' true'
12
+ VOICELIVE_OPENAI_ENDPOINT : $(VoiceLiveOpenAIEndpoint)
13
+ VOICELIVE_OPENAI_API_KEY : $(VoiceLiveOpenAIApiKey)
Original file line number Diff line number Diff line change
1
+ """
2
+ Pytest configuration for Azure AI Voice Live SDK tests.
3
+ """
4
+
5
+ import pytest
6
+ import os
7
+ import base64
8
+ from devtools_testutils import (
9
+ test_proxy ,
10
+ is_live
11
+ )
12
+
13
+ from pathlib import Path
14
+
15
+ def pytest_runtest_setup (item ):
16
+ is_live_only_test_marked = bool ([mark for mark in item .iter_markers (name = "live_test_only" )])
17
+ if is_live_only_test_marked :
18
+ if not is_live ():
19
+ pytest .skip ("live test only" )
20
+
21
+ is_playback_test_marked = bool ([mark for mark in item .iter_markers (name = "playback_test_only" )])
22
+ if is_playback_test_marked :
23
+ if is_live ():
24
+ pytest .skip ("playback test only" )
25
+
26
+ @pytest .fixture
27
+ def test_data_dir () -> Path :
28
+ return Path (__file__ ).parent / "data"
29
+
30
+ @pytest .fixture (scope = "session" , autouse = True )
31
+ def start_proxy (test_proxy ):
32
+ return
You can’t perform that action at this time.
0 commit comments