Skip to content

Commit

Permalink
actually verify bing_id property
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Aug 31, 2020
1 parent 23d9197 commit 9f26362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,4 +599,4 @@ def test_bing_id(self, client):
result = client.recognize_linked_entities(["Microsoft was founded by Bill Gates and Paul Allen"])
for doc in result:
for entity in doc.entities:
assert entity # this checks if it's None and if it's empty
assert entity.bing_id # this checks if it's None and if it's empty
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@ async def test_bing_id(self, client):
result = await client.recognize_linked_entities(["Microsoft was founded by Bill Gates and Paul Allen"])
for doc in result:
for entity in doc.entities:
assert entity # this checks if it's None and if it's empty
assert entity.bing_id # this checks if it's None and if it's empty

0 comments on commit 9f26362

Please sign in to comment.