mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-10-29 08:49:41 +00:00
Test: fix chunk deletion test assertions (#8222)
### What problem does this PR solve? - Fix test assertions in test_delete_chunks.py to expect empty results after deletion Action 7619 ### Type of change - [x] Bug Fix test cases
This commit is contained in:
parent
bf7f7c7027
commit
54a465f9e8
@ -157,8 +157,8 @@ class TestChunksDeletion:
|
|||||||
res = list_chunks(HttpApiAuth, dataset_id, document_id)
|
res = list_chunks(HttpApiAuth, dataset_id, document_id)
|
||||||
if res["code"] != 0:
|
if res["code"] != 0:
|
||||||
assert False, res
|
assert False, res
|
||||||
assert len(res["data"]["chunks"]) == 1
|
assert len(res["data"]["chunks"]) == 0
|
||||||
assert res["data"]["total"] == 1
|
assert res["data"]["total"] == 0
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"payload, expected_code, expected_message, remaining",
|
"payload, expected_code, expected_message, remaining",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user