mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 09:29:14 -04:00
make sure auth type is set when registering
This commit is contained in:
@@ -16,6 +16,8 @@ def test_render_register_returns_template_with_form(client):
|
||||
response = client.get('/register')
|
||||
|
||||
assert response.status_code == 200
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
assert page.find('input', attrs={'name': 'auth_type'}).attrs['value'] == 'sms_auth'
|
||||
assert 'Create an account' in response.get_data(as_text=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user