-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from greyli/messages
Improve flash messages
- Loading branch information
Showing
5 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ def test_register_account(self): | |
follow_redirects=True, | ||
) | ||
data = response.get_data(as_text=True) | ||
self.assertIn('Confirm email sent, check your inbox.', data) | ||
self.assertIn('Confirmation email sent, please check your inbox.', data) | ||
|
||
def test_confirm_account(self): | ||
user = User.query.filter_by(email='[email protected]').first() | ||
|
@@ -85,7 +85,7 @@ def test_reset_password(self): | |
follow_redirects=True, | ||
) | ||
data = response.get_data(as_text=True) | ||
self.assertIn('Password reset email sent, check your inbox.', data) | ||
self.assertIn('Password reset email sent, please check your inbox.', data) | ||
user = User.query.filter_by(email='[email protected]').first() | ||
self.assertTrue(user.validate_password('123')) | ||
|
||
|