mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? update test case for PR #6800 issue #6539 ### Type of change - [x] update test cases
This commit is contained in:
@ -96,12 +96,7 @@ class TestUpdatedChunk:
|
|||||||
"payload, expected_code, expected_message",
|
"payload, expected_code, expected_message",
|
||||||
[
|
[
|
||||||
({"questions": ["a", "b", "c"]}, 0, ""),
|
({"questions": ["a", "b", "c"]}, 0, ""),
|
||||||
pytest.param(
|
({"questions": [""]}, 0, ""),
|
||||||
{"questions": [""]},
|
|
||||||
0,
|
|
||||||
"",
|
|
||||||
marks=pytest.mark.skip(reason="issues/6539"),
|
|
||||||
),
|
|
||||||
({"questions": [1]}, 100, "TypeError('sequence item 0: expected str instance, int found')"),
|
({"questions": [1]}, 100, "TypeError('sequence item 0: expected str instance, int found')"),
|
||||||
({"questions": ["a", "a"]}, 0, ""),
|
({"questions": ["a", "a"]}, 0, ""),
|
||||||
({"questions": "abc"}, 102, "`questions` should be a list"),
|
({"questions": "abc"}, 102, "`questions` should be a list"),
|
||||||
|
|||||||
Reference in New Issue
Block a user