|
1 | 1 | import pytest
|
2 | 2 | import os
|
3 |
| - |
| 3 | +import time |
4 | 4 | from taskingai.retrieval import TokenTextSplitter, TextSplitter
|
5 | 5 | from taskingai.retrieval import (
|
6 | 6 | list_collections,
|
@@ -171,7 +171,7 @@ def test_create_record_by_web(self, collection_id):
|
171 | 171 | res_dict = vars(res)
|
172 | 172 | assume_record_result(create_record_data, res_dict)
|
173 | 173 |
|
174 |
| - @pytest.mark.run(order=31) |
| 174 | + @pytest.mark.run(order=32) |
175 | 175 | @pytest.mark.parametrize("upload_file_data", upload_file_data_list[:2])
|
176 | 176 | def test_create_record_by_file(self, collection_id, upload_file_data):
|
177 | 177 | # upload file
|
@@ -267,7 +267,7 @@ def test_update_record_by_web(self, collection_id, record_id, text_splitter):
|
267 | 267 | res_dict = vars(res)
|
268 | 268 | assume_record_result(update_record_data, res_dict)
|
269 | 269 |
|
270 |
| - @pytest.mark.run(order=34) |
| 270 | + @pytest.mark.run(order=35) |
271 | 271 | @pytest.mark.parametrize("upload_file_data", upload_file_data_list[2:3])
|
272 | 272 | def test_update_record_by_file(self, collection_id, record_id, upload_file_data):
|
273 | 273 | # upload file
|
@@ -295,7 +295,7 @@ def test_update_record_by_file(self, collection_id, record_id, upload_file_data)
|
295 | 295 | @pytest.mark.run(order=79)
|
296 | 296 | def test_delete_record(self, collection_id):
|
297 | 297 | # List records.
|
298 |
| - |
| 298 | + time.sleep(Config.sleep_time) |
299 | 299 | records = list_records(collection_id=collection_id, order="desc", limit=20, after=None, before=None)
|
300 | 300 | old_nums = len(records)
|
301 | 301 | for index, record in enumerate(records):
|
|
0 commit comments