From 4cf43c75d92b0970a66754d3a8ecd8491d62e5d1 Mon Sep 17 00:00:00 2001 From: heshunme Date: Wed, 20 Nov 2024 22:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E5=BA=94=E6=8E=A5=E5=8F=A3=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_login_reg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_login_reg.py b/test/test_login_reg.py index bd689fe..516232f 100644 --- a/test/test_login_reg.py +++ b/test/test_login_reg.py @@ -69,7 +69,7 @@ class TestLoginReg(unittest.TestCase): # 发送登录请求 response = client.post("/api/s1/login", json={"username": "testuser", "password": "testpassword"}) self.assertEqual(response.status_code, 200) - self.assertEqual(response.json(), {"message": "Login successful"}) + self.assertEqual(response.json(), {'message': 'Login successful', 'role': 1}) def test_register(self): # 发送注册请求