mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 01:18:25 -04:00
Refactor add-service form such that the dao is not exposed in the forms.
This commit is contained in:
@@ -38,5 +38,5 @@ def test_should_return_form_errors_when_service_name_is_empty(notifications_admi
|
||||
verify_codes_dao.add_code(user_id=user.id, code='12345', code_type='sms')
|
||||
client.post('/two-factor', data={'sms_code': '12345'})
|
||||
response = client.post('/add-service', data={})
|
||||
assert response.status_code == 400
|
||||
assert response.status_code == 200
|
||||
assert 'Please enter your service name' in response.get_data(as_text=True)
|
||||
|
||||
Reference in New Issue
Block a user