Skip to content

Commit

Permalink
fix: Add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam committed Jan 25, 2021
1 parent 3fdd5fb commit c01746c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions flask_appbuilder/tests/test_mvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,19 @@ def test_sec_reset_password(self):
)
self.assertEqual(rv.status_code, 200)

# Reset My Password wrong current pass
self.browser_login(client, USERNAME_ADMIN, "password")
rv = client.post(
"/resetmypassword/form",
data=dict(
current_password="1",
password=PASSWORD_ADMIN,
conf_password=PASSWORD_ADMIN,
),
follow_redirects=True,
)
self.assertEqual(rv.status_code, 200)

# Reset Password Admin
rv = client.get("/users/action/resetpasswords/1", follow_redirects=True)
data = rv.data.decode("utf-8")
Expand Down

0 comments on commit c01746c

Please sign in to comment.