mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
refactor: 统一项目中状态字段类型为数字类型
这是一个大规模的类型对齐优化: 1. 将多处字符串类型的status字段统一改为数字类型,包括前后端接口定义、数据模型、页面组件 2. 重构编排节点相关的命名和注释,统一改为"节点类型"替代"编排节点类型" 3. 移除了过时的忘记密码相关接口和模板代码 4. 优化搜索栏组件,支持展开仅显示次要字段 5. 调整部分接口参数和路由逻辑,对齐前后端参数格式
This commit is contained in:
@@ -65,22 +65,6 @@ class TestAuth:
|
||||
def test_auth_auto_login_token(self, test_client: TestClient, auth_headers: dict) -> None:
|
||||
assert_route(test_client, "POST", "/system/auth/auto-login/token?user_id=1", auth=auth_headers)
|
||||
|
||||
def test_auth_forgot_password(self, test_client: TestClient) -> None:
|
||||
assert_route(
|
||||
test_client,
|
||||
"POST",
|
||||
"/system/auth/forgot-password",
|
||||
json={"username": "admin"},
|
||||
)
|
||||
|
||||
def test_auth_reset_password(self, test_client: TestClient) -> None:
|
||||
assert_route(
|
||||
test_client,
|
||||
"POST",
|
||||
"/system/auth/reset-password",
|
||||
json={"token": "mock_reset_token", "new_password": "newpass123"},
|
||||
)
|
||||
|
||||
|
||||
class TestUser:
|
||||
"""用户管理接口 — 数据验证。"""
|
||||
@@ -142,7 +126,7 @@ class TestUser:
|
||||
def test_user_password_forget(self, test_client: TestClient) -> None:
|
||||
assert_route(
|
||||
test_client, "POST", "/system/user/password/forget",
|
||||
json={"username": "admin"},
|
||||
json={"username": "admin", "new_password": "newpass123"},
|
||||
)
|
||||
|
||||
def test_user_password_reset(self, test_client: TestClient, auth_headers: dict) -> None:
|
||||
|
||||
Reference in New Issue
Block a user