@@ -267,30 +267,30 @@ 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 = 35 )
271- @pytest .mark .parametrize ("upload_file_data" , upload_file_data_list [2 :3 ])
272- def test_update_record_by_file (self , collection_id , record_id , upload_file_data ):
273- # upload file
274- upload_file_res = upload_file (** upload_file_data )
275- upload_file_dict = vars (upload_file_res )
276- file_id = upload_file_dict ["file_id" ]
277- pytest .assume (file_id is not None )
278-
279- # Update a record.
280- text_splitter = TokenTextSplitter (chunk_size = 200 , chunk_overlap = 20 )
281-
282- update_record_data = {
283- "type" : "file" ,
284- "title" : "TaskingAI" ,
285- "collection_id" : collection_id ,
286- "record_id" : record_id ,
287- "file_id" : file_id ,
288- "text_splitter" : text_splitter ,
289- "metadata" : {"test" : "test" },
290- }
291- res = update_record (** update_record_data )
292- res_dict = vars (res )
293- assume_record_result (update_record_data , res_dict )
270+ # @pytest.mark.run(order=35)
271+ # @pytest.mark.parametrize("upload_file_data", upload_file_data_list[2:3])
272+ # def test_update_record_by_file(self, collection_id, record_id, upload_file_data):
273+ # # upload file
274+ # upload_file_res = upload_file(**upload_file_data)
275+ # upload_file_dict = vars(upload_file_res)
276+ # file_id = upload_file_dict["file_id"]
277+ # pytest.assume(file_id is not None)
278+ #
279+ # # Update a record.
280+ # text_splitter = TokenTextSplitter(chunk_size=200, chunk_overlap=20)
281+ #
282+ # update_record_data = {
283+ # "type": "file",
284+ # "title": "TaskingAI",
285+ # "collection_id": collection_id,
286+ # "record_id": record_id,
287+ # "file_id": file_id,
288+ # "text_splitter": text_splitter,
289+ # "metadata": {"test": "test"},
290+ # }
291+ # res = update_record(**update_record_data)
292+ # res_dict = vars(res)
293+ # assume_record_result(update_record_data, res_dict)
294294
295295 @pytest .mark .run (order = 79 )
296296 def test_delete_record (self , collection_id ):
0 commit comments