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

@ -24,7 +24,7 @@ from utils.hypothesis_utils import valid_names
class TestAuthorization:
@pytest.mark.p1
@pytest.mark.p2
@pytest.mark.parametrize(
"invalid_auth, expected_message",
[

View File

@ -20,7 +20,7 @@ from ragflow_sdk import RAGFlow
from configs import INVALID_API_TOKEN, HOST_ADDRESS
class TestAuthorization:
@pytest.mark.p1
@pytest.mark.p2
@pytest.mark.parametrize(
"invalid_auth, expected_message",
[
@ -47,13 +47,13 @@ class TestCapability:
@pytest.mark.usefixtures("add_memory_func")
class TestMemoryList:
@pytest.mark.p1
@pytest.mark.p2
def test_params_unset(self, client):
res = client.list_memory()
assert len(res["memory_list"]) == 3, str(res)
assert res["total_count"] == 3, str(res)
@pytest.mark.p1
@pytest.mark.p2
def test_params_empty(self, client):
res = client.list_memory(**{})
assert len(res["memory_list"]) == 3, str(res)

View File

@ -18,7 +18,7 @@ from ragflow_sdk import RAGFlow
from configs import INVALID_API_TOKEN, HOST_ADDRESS
class TestAuthorization:
@pytest.mark.p1
@pytest.mark.p2
@pytest.mark.parametrize(
"invalid_auth, expected_message",
[

View File

@ -24,7 +24,7 @@ from utils.hypothesis_utils import valid_names
class TestAuthorization:
@pytest.mark.p1
@pytest.mark.p2
@pytest.mark.parametrize(
"invalid_auth, expected_message",
[
@ -84,7 +84,7 @@ class TestMemoryUpdate:
res_1 = memory_1.update(update_dict)
assert res_1.name == "Test_Memory(1)", str(res_1)
@pytest.mark.p1
@pytest.mark.p2
def test_avatar(self, client, tmp_path):
memory_ids = self.memory_ids
fn = create_image_file(tmp_path / "ragflow_test.png")
@ -93,7 +93,7 @@ class TestMemoryUpdate:
res = memory.update(update_dict)
assert res.avatar == f"data:image/png;base64,{encode_avatar(fn)}", str(res)
@pytest.mark.p1
@pytest.mark.p2
def test_description(self, client):
memory_ids = self.memory_ids
description = "This is a test description."
@ -111,7 +111,7 @@ class TestMemoryUpdate:
res = memory.update(update_dict)
assert res.llm_id == llm_id, str(res)
@pytest.mark.p1
@pytest.mark.p2
@pytest.mark.parametrize(
"permission",
[