Skip to content

Commit a05ceba

Browse files
authored
Merge pull request #1067 from sanders41/test
Add addition check to federated search tests
2 parents 47d81c5 + 088d54d commit a05ceba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/test_async_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ async def test_multi_search_federated(async_client, async_index_with_documents,
390390

391391
assert response.hits[0]["id"] == "166428"
392392
assert "_formatted" not in response.hits[0]
393+
assert "_federation" in response.hits[0]
393394

394395

395396
async def test_multi_search_locales(async_client, async_index_with_documents, async_empty_index):

tests/test_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ def test_multi_search_federated(client, index_with_documents, empty_index):
388388

389389
assert response.hits[0]["id"] == "166428"
390390
assert "_formatted" not in response.hits[0]
391+
assert "_federation" in response.hits[0]
391392

392393

393394
def test_multi_search_locales(client, index_with_documents, empty_index):

0 commit comments

Comments
 (0)