Skip to content

Commit

Permalink
调整登录后跳转的测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Apr 25, 2019
1 parent b2b54f9 commit 0d31175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0d31175

Please sign in to comment.