Fix(test): downgrade test priorities (#12913)

### What problem does this PR solve?

Changed test priorities in multiple test files, downgrading from p1 to
p2 and p2 to p3.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Liu An
2026-01-30 20:02:56 +08:00
committed by GitHub
parent eb75b1ce82
commit c4f60b349d
60 changed files with 108 additions and 104 deletions

View File

@ -22,7 +22,7 @@ from libs.auth import RAGFlowWebApiAuth
from utils import is_sorted
@pytest.mark.p1
@pytest.mark.p2
class TestAuthorization:
@pytest.mark.parametrize(
"invalid_auth, expected_code, expected_message",

View File

@ -63,7 +63,7 @@ def validate_document_parse_cancel(auth, _kb_id, _document_ids):
assert doc["progress"] == 0.0
@pytest.mark.p1
@pytest.mark.p2
class TestAuthorization:
@pytest.mark.parametrize(
"invalid_auth, expected_code, expected_message",

View File

@ -21,7 +21,7 @@ from configs import INVALID_API_TOKEN
from libs.auth import RAGFlowWebApiAuth
@pytest.mark.p1
@pytest.mark.p2
class TestAuthorization:
@pytest.mark.parametrize(
"invalid_auth, expected_code, expected_message",

View File

@ -74,7 +74,7 @@ class TestDocumentsUpload:
assert res["data"][0]["kb_id"] == kb_id, res
assert res["data"][0]["name"] == fp.name, res
@pytest.mark.p2
@pytest.mark.p3
@pytest.mark.parametrize(
"file_type",
["exe", "unknown"],
@ -113,7 +113,7 @@ class TestDocumentsUpload:
assert res["code"] == 101, res
assert res["message"] == "No file selected!", res
@pytest.mark.p2
@pytest.mark.p3
def test_filename_exceeds_max_length(self, WebApiAuth, add_dataset_func, tmp_path):
kb_id = add_dataset_func
fp = create_txt_file(tmp_path / f"{'a' * (DOCUMENT_NAME_LIMIT - 4)}.txt")