From 0d31175506adf2e18732e90ac9ec4154ec0a5cf3 Mon Sep 17 00:00:00 2001 From: hhyo Date: Thu, 25 Apr 2019 23:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/tests.py b/sql/tests.py index 6a2dc2577b..901a9cec77 100644 --- a/sql/tests.py +++ b/sql/tests.py @@ -100,8 +100,8 @@ def testLogin(self): self.assertTemplateUsed(r, 'login.html') c.force_login(self.u1) # 登录后直接跳首页 - r = c.get('/login/', follow=False) - self.assertRedirects(r, '/') + r = c.get('/login/', follow=True) + self.assertRedirects(r, '/sqlworkflow/') class TestQueryPrivilegesCheck(TestCase):