Skip to content

Commit bc266d1

Browse files
committed
temp
1 parent 8102fa7 commit bc266d1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,7 @@ def callback(resp):
676676
tasks = json.loads(resp.http_request.body)["tasks"]
677677
assert len(tasks) == len(actions)
678678
for task in tasks.values():
679-
assert task[0]["parameter"]["loggingOptOut"]
680-
679+
assert task[0]["parameters"]["loggingOptOut"]
681680

682681
client.begin_analyze_actions(
683682
documents=["Test for logging disable"],

sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import functools
1111
import itertools
1212
import json
13+
import time
1314

1415
from azure.core.exceptions import HttpResponseError, ClientAuthenticationError
1516
from azure.core.pipeline.transport import AioHttpTransport
@@ -713,17 +714,16 @@ async def test_disable_service_logs(self, client):
713714
for action in actions:
714715
assert action.disable_service_logs
715716

717+
coroutine = None
716718
def callback(resp):
717-
# tasks = json.loads(resp.http_request.body)["tasks"]
718-
# assert len(tasks) == len(actions)
719-
# for task in tasks.values():
720-
# assert task[0]["parameter"]["loggingOptOut"]
721-
pass
722-
719+
coroutine = resp
723720

724721
await (await client.begin_analyze_actions(
725722
documents=["Test for logging disable"],
726723
actions=actions,
727724
polling_interval=self._interval(),
728725
raw_response_hook=callback,
729726
)).result()
727+
728+
response = await coroutine
729+
a = "b"

0 commit comments

Comments
 (0)