Added tests for minitwit. Testing with Flask is awesome
This commit is contained in:
parent
03168a5d53
commit
f2dc38cda6
4 changed files with 153 additions and 4 deletions
|
|
@ -216,7 +216,7 @@ def register():
|
|||
elif not request.form['password']:
|
||||
error = 'You have to enter a password'
|
||||
elif request.form['password'] != request.form['password2']:
|
||||
error = 'The two passwords to not match'
|
||||
error = 'The two passwords do not match'
|
||||
elif get_user_id(request.form['username']) is not None:
|
||||
error = 'The username is already taken'
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue