Skip to content

Commit 36811f2

Browse files
committed
Updated tests
1 parent b2a1269 commit 36811f2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/test_manual.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ async def test_manual(self):
5151
indexApi = manticoresearch.IndexApi(client)
5252
indexApi.bulk('\n'.join(map(json.dumps,docs)))
5353

54-
search_request = SearchRequest(
55-
table="movies",
56-
)
57-
matchFilter = QueryFilter()
58-
matchFilter.match = {"title":"4"}
59-
mustCond = [ matchFilter ]
60-
boolFilter = BoolFilter(must=mustCond)
61-
searchQuery = SearchQuery(bool={"must": [ {"match": {"title":"4"}}] })
62-
search_request.query = searchQuery
54+
search_request = SearchRequest(
55+
table="movies",
56+
)
57+
matchFilter = QueryFilter()
58+
matchFilter.match = {"title":"4"}
59+
mustCond = [ matchFilter ]
60+
boolFilter = BoolFilter(must=mustCond)
61+
searchQuery = SearchQuery(bool={"must": [ {"match": {"title":"4"}}] })
62+
search_request.query = searchQuery
6363

64-
async with manticoresearch.ApiClient(self.configuration) as client:
64+
6565
searchApi = manticoresearch.SearchApi(client)
6666
res = searchApi.search(search_request)
6767
pprint(res)

0 commit comments

Comments
 (0)