Skip to content

Commit 9f26362

Browse files
committed
actually verify bing_id property
1 parent 23d9197 commit 9f26362

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,4 +599,4 @@ def test_bing_id(self, client):
599599
result = client.recognize_linked_entities(["Microsoft was founded by Bill Gates and Paul Allen"])
600600
for doc in result:
601601
for entity in doc.entities:
602-
assert entity # this checks if it's None and if it's empty
602+
assert entity.bing_id # this checks if it's None and if it's empty

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,4 +635,4 @@ async def test_bing_id(self, client):
635635
result = await client.recognize_linked_entities(["Microsoft was founded by Bill Gates and Paul Allen"])
636636
for doc in result:
637637
for entity in doc.entities:
638-
assert entity # this checks if it's None and if it's empty
638+
assert entity.bing_id # this checks if it's None and if it's empty

0 commit comments

Comments
 (0)