Tidy up inconsistencies in forms

Wherever possible, use the macros.
This commit is contained in:
Chris Hill-Scott
2016-02-01 16:40:04 +00:00
parent b5b13254c7
commit 9cf6dfa6f2
7 changed files with 32 additions and 29 deletions

View File

@@ -16,9 +16,8 @@ def test_should_render_new_password_template(app_,
with app_.test_client() as client:
token = generate_token(api_user_active.email_address)
response = client.get(url_for('.new_password', token=token))
print(response.location)
assert response.status_code == 200
assert ' You can now create a new password for your account.' in response.get_data(as_text=True)
assert 'You can now create a new password for your account.' in response.get_data(as_text=True)
@pytest.mark.skipif(True, reason='Password reset no implemented')