mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Go: fix warnings (#17738)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -107,7 +107,7 @@ def test_validate_immutable_fields_chunk_count_mismatch():
|
||||
doc.progress = 0.5
|
||||
|
||||
error_msg, error_code = validate_immutable_fields(update_doc_req, doc)
|
||||
assert error_msg == "Can't change `chunk_count`."
|
||||
assert error_msg == "can't change `chunk_count`"
|
||||
assert error_code == RetCode.DATA_ERROR
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ def test_validate_immutable_fields_token_count_mismatch():
|
||||
doc.progress = 0.5
|
||||
|
||||
error_msg, error_code = validate_immutable_fields(update_doc_req, doc)
|
||||
assert error_msg == "Can't change `token_count`."
|
||||
assert error_msg == "can't change `token_count`"
|
||||
assert error_code == RetCode.DATA_ERROR
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ def test_validate_immutable_fields_progress_mismatch():
|
||||
doc.progress = 0.5
|
||||
|
||||
error_msg, error_code = validate_immutable_fields(update_doc_req, doc)
|
||||
assert error_msg == "Can't change `progress`."
|
||||
assert error_msg == "can't change `progress`"
|
||||
assert error_code == RetCode.DATA_ERROR
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ def test_validate_immutable_fields_zero_values_must_match():
|
||||
doc.progress = 0.5
|
||||
|
||||
error_msg, error_code = validate_immutable_fields(update_doc_req, doc)
|
||||
assert error_msg == "Can't change `chunk_count`."
|
||||
assert error_msg == "can't change `chunk_count`"
|
||||
assert error_code == RetCode.DATA_ERROR
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ def test_validate_immutable_fields_zero_token_count_mismatch_when_chunk_count_ma
|
||||
doc.progress = 0.0
|
||||
|
||||
error_msg, error_code = validate_immutable_fields(update_doc_req, doc)
|
||||
assert error_msg == "Can't change `token_count`."
|
||||
assert error_msg == "can't change `token_count`"
|
||||
assert error_code == RetCode.DATA_ERROR
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ def test_validate_immutable_fields_zero_progress_mismatch_when_counts_match():
|
||||
doc.progress = 0.5
|
||||
|
||||
error_msg, error_code = validate_immutable_fields(update_doc_req, doc)
|
||||
assert error_msg == "Can't change `progress`."
|
||||
assert error_msg == "can't change `progress`"
|
||||
assert error_code == RetCode.DATA_ERROR
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user