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:
Liu An 2025-06-12 17:41:46 +08:00 committed by GitHub
parent bf7f7c7027
commit 54a465f9e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,8 +157,8 @@ class TestChunksDeletion:
res = list_chunks(HttpApiAuth, dataset_id, document_id)
if res["code"] != 0:
assert False, res
assert len(res["data"]["chunks"]) == 1
assert res["data"]["total"] == 1
assert len(res["data"]["chunks"]) == 0
assert res["data"]["total"] == 0
@pytest.mark.parametrize(
"payload, expected_code, expected_message, remaining",