Skip to content

Commit af6182b

Browse files
committed
Updated tests
1 parent 36811f2 commit af6182b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_manual.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ async def test_manual(self):
3434
utilsApi = manticoresearch.UtilsApi(client)
3535
await utilsApi.sql('query=DROP TABLE IF EXISTS movies')
3636

37-
async with manticoresearch.ApiClient(self.configuration) as client:
37+
3838
utilsApi = manticoresearch.UtilsApi(client)
3939
await utilsApi.sql("CREATE TABLE IF NOT EXISTS movies (title text, plot text, _year integer, rating float, code multi) min_infix_len='2'")
4040

4141

42-
searchApi = manticoresearch.SearchApi(client)
43-
4442
docs = [ \
4543
{"insert": {"table" : "movies", "id" : 1, "doc" : {"title" : "Star Trek 2: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2002, "rating": 6.4, "code": [1,2,3]}}}, \
4644
{"insert": {"table" : "movies", "id" : 2, "doc" : {"title" : "Star Trek 1: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2001, "rating": 6.5, "code": [1,12,3]}}},

0 commit comments

Comments
 (0)