mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 07:31:28 -04:00
Update register view form and template.
This commit is contained in:
@@ -4,14 +4,11 @@ from app.main.forms import RegisterUserForm
|
||||
|
||||
|
||||
def test_should_raise_validation_error_for_password(notifications_admin):
|
||||
form = RegisterUserForm()
|
||||
form = RegisterUserForm([], [])
|
||||
form.name.data = 'test'
|
||||
form.email_address.data = 'teset@example.gov.uk'
|
||||
form.mobile_number.data = '+441231231231'
|
||||
form.password.data = 'password1234'
|
||||
|
||||
try:
|
||||
form.validate()
|
||||
fail()
|
||||
except:
|
||||
assert 'That password is blacklisted, too common' in form.errors['password']
|
||||
form.validate()
|
||||
assert 'That password is blacklisted, too common' in form.errors['password']
|
||||
|
||||
Reference in New Issue
Block a user