Skip to content

Commit 54b95cb

Browse files
committed
test: fix test for record
1 parent 3c42081 commit 54b95cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def assume_record_result(create_record_data: dict, res_dict: dict):
118118
else:
119119
pytest.assume(res_dict[key] == create_record_data[key])
120120

121-
pytest.assume(res_dict["status"] == "ready")
121+
pytest.assume(res_dict["status"] == "creating")
122122

123123

124124
def assume_chunk_result(chunk_dict: dict, res: dict):

test/testcase/test_sync/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def collection_id():
3636
@pytest.fixture(scope="session")
3737
def record_id(collection_id):
3838
res = list_records(str(collection_id))
39-
record_id = res[0].record_id
39+
record_id = res[-1].record_id
4040
return record_id
4141

4242

test/testcase/test_sync/test_sync_retrieval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def test_create_record_by_web(self, collection_id):
171171
res_dict = vars(res)
172172
assume_record_result(create_record_data, res_dict)
173173

174-
@pytest.mark.run(order=31)
174+
@pytest.mark.run(order=32)
175175
@pytest.mark.parametrize("upload_file_data", upload_file_data_list[:2])
176176
def test_create_record_by_file(self, collection_id, upload_file_data):
177177
# upload file
@@ -267,7 +267,7 @@ def test_update_record_by_web(self, collection_id, record_id, text_splitter):
267267
res_dict = vars(res)
268268
assume_record_result(update_record_data, res_dict)
269269

270-
@pytest.mark.run(order=34)
270+
@pytest.mark.run(order=35)
271271
@pytest.mark.parametrize("upload_file_data", upload_file_data_list[2:3])
272272
def test_update_record_by_file(self, collection_id, record_id, upload_file_data):
273273
# upload file

0 commit comments

Comments
 (0)