fix(avatar): cap knowledge files at 50MB
This commit is contained in:
@@ -82,7 +82,7 @@ def test_upload_rejects_oversize_file_before_queuing_indexing(
|
||||
|
||||
payload = response.json()
|
||||
assert payload["code"] == 400
|
||||
assert payload["message"] == "文件不能超过 100MB"
|
||||
assert payload["message"] == "文件不能超过 50MB"
|
||||
enqueue.assert_not_called()
|
||||
assert not list((tmp_path / context["avatar"].id).glob("*"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user