Skip to content

Commit 0832f65

Browse files
qa more tests need rerecord (#35249)
1 parent 0b9b958 commit 0832f65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/test_query_knowledgebase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def test_query_knowledgebase_with_answerspan(self, recorded_test, qna_creds):
248248
assert prompt.qna_id
249249
assert prompt.display_text
250250

251-
251+
@pytest.mark.live_test_only("Needs re-recording to work with new common sanitizers")
252252
def test_query_knowledgebase_with_dictparams(self, recorded_test, qna_creds):
253253
client = QuestionAnsweringClient(qna_creds["qna_endpoint"], AzureKeyCredential(qna_creds["qna_key"]))
254254
query_params = {
@@ -276,6 +276,7 @@ def test_query_knowledgebase_with_dictparams(self, recorded_test, qna_creds):
276276
assert len(confident_answers) == 1
277277
assert confident_answers[0].source == "surface-book-user-guide-EN.pdf"
278278

279+
@pytest.mark.live_test_only("Needs re-recording to work with new common sanitizers")
279280
def test_query_knowledgebase_overload(self, recorded_test, qna_creds):
280281
client = QuestionAnsweringClient(qna_creds["qna_endpoint"], AzureKeyCredential(qna_creds["qna_key"]))
281282
with client:
@@ -298,6 +299,7 @@ def test_query_knowledgebase_overload(self, recorded_test, qna_creds):
298299
assert len(confident_answers) == 1
299300
assert confident_answers[0].source == "surface-book-user-guide-EN.pdf"
300301

302+
@pytest.mark.live_test_only("Needs re-recording to work with new common sanitizers")
301303
def test_query_knowledgebase_with_followup(self, recorded_test, qna_creds):
302304
client = QuestionAnsweringClient(qna_creds["qna_endpoint"], AzureKeyCredential(qna_creds["qna_key"]))
303305
with client:

sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/test_query_knowledgebase_async.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ async def test_query_knowledgebase_with_answerspan(self, recorded_test, qna_cred
253253
assert prompt.qna_id
254254
assert prompt.display_text
255255

256+
@pytest.mark.live_test_only("Needs re-recording to work with new common sanitizers")
256257
@pytest.mark.asyncio
257258
async def test_query_knowledgebase_with_dictparams(self, recorded_test, qna_creds):
258259
client = QuestionAnsweringClient(qna_creds["qna_endpoint"], AzureKeyCredential(qna_creds["qna_key"]))
@@ -281,6 +282,7 @@ async def test_query_knowledgebase_with_dictparams(self, recorded_test, qna_cred
281282
assert len(confident_answers) == 1
282283
assert confident_answers[0].source == "surface-book-user-guide-EN.pdf"
283284

285+
@pytest.mark.live_test_only("Needs re-recording to work with new common sanitizers")
284286
@pytest.mark.asyncio
285287
async def test_query_knowledgebase_overload(self, recorded_test, qna_creds):
286288
client = QuestionAnsweringClient(qna_creds["qna_endpoint"], AzureKeyCredential(qna_creds["qna_key"]))
@@ -304,6 +306,7 @@ async def test_query_knowledgebase_overload(self, recorded_test, qna_creds):
304306
assert len(confident_answers) == 1
305307
assert confident_answers[0].source == "surface-book-user-guide-EN.pdf"
306308

309+
@pytest.mark.live_test_only("Needs re-recording to work with new common sanitizers")
307310
@pytest.mark.asyncio
308311
async def test_query_knowledgebase_with_followup(self, recorded_test, qna_creds):
309312
client = QuestionAnsweringClient(qna_creds["qna_endpoint"], AzureKeyCredential(qna_creds["qna_key"]))

0 commit comments

Comments
 (0)