mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-02 00:25:06 +08:00
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:
@ -26,7 +26,7 @@ from common import create_dialog
|
||||
|
||||
@pytest.mark.usefixtures("clear_dialogs")
|
||||
class TestAuthorization:
|
||||
@pytest.mark.p1
|
||||
@pytest.mark.p2
|
||||
@pytest.mark.parametrize(
|
||||
"invalid_auth, expected_code, expected_message",
|
||||
[
|
||||
|
||||
@ -23,7 +23,7 @@ from libs.auth import RAGFlowWebApiAuth
|
||||
|
||||
@pytest.mark.usefixtures("clear_dialogs")
|
||||
class TestAuthorization:
|
||||
@pytest.mark.p1
|
||||
@pytest.mark.p2
|
||||
@pytest.mark.parametrize(
|
||||
"invalid_auth, expected_code, expected_message",
|
||||
[
|
||||
|
||||
@ -21,7 +21,7 @@ from libs.auth import RAGFlowWebApiAuth
|
||||
|
||||
@pytest.mark.usefixtures("clear_dialogs")
|
||||
class TestAuthorization:
|
||||
@pytest.mark.p1
|
||||
@pytest.mark.p2
|
||||
@pytest.mark.parametrize(
|
||||
"invalid_auth, expected_code, expected_message",
|
||||
[
|
||||
|
||||
@ -21,7 +21,7 @@ from libs.auth import RAGFlowWebApiAuth
|
||||
|
||||
@pytest.mark.usefixtures("clear_dialogs")
|
||||
class TestAuthorization:
|
||||
@pytest.mark.p1
|
||||
@pytest.mark.p2
|
||||
@pytest.mark.parametrize(
|
||||
"invalid_auth, expected_code, expected_message",
|
||||
[
|
||||
|
||||
@ -21,7 +21,7 @@ from libs.auth import RAGFlowWebApiAuth
|
||||
|
||||
@pytest.mark.usefixtures("clear_dialogs")
|
||||
class TestAuthorization:
|
||||
@pytest.mark.p1
|
||||
@pytest.mark.p2
|
||||
@pytest.mark.parametrize(
|
||||
"invalid_auth, expected_code, expected_message",
|
||||
[
|
||||
@ -48,7 +48,7 @@ class TestDialogUpdate:
|
||||
assert res["code"] == 0, res
|
||||
assert res["data"]["name"] == new_name, res
|
||||
|
||||
@pytest.mark.p1
|
||||
@pytest.mark.p2
|
||||
def test_update_description(self, WebApiAuth, add_dialog_func):
|
||||
_, dialog_id = add_dialog_func
|
||||
new_description = "Updated description"
|
||||
|
||||
Reference in New Issue
Block a user