Skip to content

Commit ea5ebe4

Browse files
committed
Updated tests
1 parent 16a0b71 commit ea5ebe4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/test_manual.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,20 @@ def setUp(self):
2626
)
2727

2828
def tearDown(self):
29+
2930
pass
3031

3132
async def test_manual(self):
3233
async with manticoresearch.ApiClient(self.configuration) as client:
33-
indexApi = manticoresearch.IndexApi(client)
3434
utilsApi = manticoresearch.UtilsApi(client)
35-
searchApi = manticoresearch.SearchApi(client)
36-
3735
res = await utilsApi.sql('query=DROP TABLE IF EXISTS movies')
3836
pprint(res)
39-
sleep(10)
37+
38+
async with manticoresearch.ApiClient(self.configuration) as client:
39+
utilsApi = manticoresearch.UtilsApi(client)
4040
res = await utilsApi.sql("CREATE TABLE IF NOT EXISTS movies (title text, plot text, _year integer, rating float, code multi) min_infix_len='2'")
41+
pprint(res)
42+
4143
pprint("Tests finished")
42-
4344
if __name__ == '__main__':
4445
unittest.main()

0 commit comments

Comments
 (0)