File tree Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 22 "AssetsRepo" : " Azure/azure-sdk-assets" ,
33 "AssetsRepoPrefixPath" : " python" ,
44 "TagPrefix" : " python/ai/azure-ai-projects" ,
5- "Tag" : " python/ai/azure-ai-projects_d6accbcde2 "
5+ "Tag" : " python/ai/azure-ai-projects_53cebeb04b "
66}
Original file line number Diff line number Diff line change 88# import os
99import pytest
1010from test_base import TestBase , servicePreparer , recorded_by_proxy_httpx
11- from devtools_testutils import is_live_and_not_recording
1211
1312
1413class TestResponses (TestBase ):
14+
15+ # To run this test:
16+ # pytest tests\agents\test_responses.py::TestResponses::test_responses -s
1517 @servicePreparer ()
16- @pytest .mark .skipif (
17- condition = (not is_live_and_not_recording ()),
18- reason = "Skipped because we cannot record network calls with OpenAI client" ,
19- )
20- # recorded_by_proxy_httpx
18+ @recorded_by_proxy_httpx
2119 def test_responses (self , ** kwargs ):
2220 """
2321 Test creating a responses call (no Agents, no Conversation).
Original file line number Diff line number Diff line change 66# cSpell:disable
77
88import pytest
9- from test_base import TestBase , servicePreparer
10- from devtools_testutils import is_live_and_not_recording
9+ from test_base import TestBase , recorded_by_proxy_async_httpx , servicePreparer
1110
1211
13- class TestResponses (TestBase ):
12+ class TestResponsesAsync (TestBase ):
1413
14+ # To run this test:
15+ # pytest tests\agents\test_responses_async.py::TestResponsesAsync::test_responses_async -s
1516 @servicePreparer ()
16- @pytest .mark .skipif (
17- condition = (not is_live_and_not_recording ()),
18- reason = "Skipped because we cannot record network calls with AOAI client" ,
19- )
20- async def test_responses (self , ** kwargs ):
17+ @recorded_by_proxy_async_httpx
18+ async def test_responses_async (self , ** kwargs ):
2119
2220 model = self .test_agents_params ["model_deployment_name" ]
2321
You can’t perform that action at this time.
0 commit comments