Skip to content

Commit 84256cc

Browse files
remove unneeded source call
1 parent eb54d3b commit 84256cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test_elasticsearch/test_dsl/test_integration/_async/test_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async def test_inner_hits_are_serialized_to_dict(
135135

136136
@pytest.mark.anyio
137137
async def test_scan_respects_doc_types(async_data_client: AsyncElasticsearch) -> None:
138-
repos = [repo async for repo in Repository.search().source("organization").scan()]
138+
repos = [repo async for repo in Repository.search().scan()]
139139

140140
assert 1 == len(repos)
141141
assert isinstance(repos[0], Repository)

test_elasticsearch/test_dsl/test_integration/_sync/test_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_inner_hits_are_serialized_to_dict(
135135

136136
@pytest.mark.sync
137137
def test_scan_respects_doc_types(data_client: Elasticsearch) -> None:
138-
repos = [repo for repo in Repository.search().source("organization").scan()]
138+
repos = [repo for repo in Repository.search().scan()]
139139

140140
assert 1 == len(repos)
141141
assert isinstance(repos[0], Repository)

0 commit comments

Comments
 (0)