Test: Lower priority of chat assistant and chunk list API tests (#13540)

### What problem does this PR solve?

Mark test cases as lower priority (p3) for:
- Creating chat assistants
- Deleting chat assistants
- Listing chat assistants
- Listing chunks within datasets

### Type of change

- [x] Update testcases
This commit is contained in:
Liu An
2026-03-11 19:00:18 +08:00
committed by GitHub
parent f75dc6a452
commit 852393c114
4 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ class TestChatAssistantCreate:
chat_assistant = client.create_chat(name=name)
assert chat_assistant.name == name
@pytest.mark.p1
@pytest.mark.p3
@pytest.mark.parametrize(
"dataset_ids, expected_message",
[
@ -216,7 +216,7 @@ class TestChatAssistantCreate:
class TestChatAssistantCreate2:
@pytest.mark.p2
@pytest.mark.p3
def test_unparsed_document(self, client, add_document):
dataset, _ = add_document
with pytest.raises(Exception) as exception_info:

View File

@ -64,7 +64,7 @@ class TestChatAssistantsDelete:
"payload",
[
pytest.param(lambda r: {"ids": ["invalid_id"] + r}, marks=pytest.mark.p3),
pytest.param(lambda r: {"ids": r[:1] + ["invalid_id"] + r[1:5]}, marks=pytest.mark.p1),
pytest.param(lambda r: {"ids": r[:1] + ["invalid_id"] + r[1:5]}, marks=pytest.mark.p3),
pytest.param(lambda r: {"ids": r + ["invalid_id"]}, marks=pytest.mark.p3),
],
)

View File

@ -215,7 +215,7 @@ class TestChatAssistantsList:
responses = list(as_completed(futures))
assert len(responses) == count, responses
@pytest.mark.p2
@pytest.mark.p3
def test_list_chats_after_deleting_associated_dataset(self, client, add_chat_assistants):
dataset, _, _ = add_chat_assistants
client.delete_datasets(ids=[dataset.id])

View File

@ -148,7 +148,7 @@ class TestChunksList:
chunks = document.list_chunks()
assert len(chunks) == 30, str(chunks)
@pytest.mark.p2
@pytest.mark.p3
def test_list_chunks_invalid_document_id_raises(self, add_chunks):
_, document, _ = add_chunks
invalid_document = document.__class__(