mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Merge with master and test fix.
This commit is contained in:
@@ -12,7 +12,7 @@ def test_render_sign_out_redirects_to_sign_in(notifications_admin):
|
||||
url_for('main.sign_out'))
|
||||
assert response.status_code == 302
|
||||
assert response.location == url_for(
|
||||
'main.render_sign_in', _external=True, next=url_for('main.sign_out'))
|
||||
'main.sign_in', _external=True, next=url_for('main.sign_out'))
|
||||
|
||||
|
||||
def test_sign_out_user(notifications_admin,
|
||||
@@ -40,4 +40,4 @@ def test_sign_out_user(notifications_admin,
|
||||
response = client.get(url_for('main.sign_out'))
|
||||
assert response.status_code == 302
|
||||
assert response.location == url_for(
|
||||
'main.render_sign_in', _external=True)
|
||||
'main.sign_in', _external=True)
|
||||
|
||||
@@ -21,7 +21,7 @@ class TestClient(FlaskClient):
|
||||
session['user_id'] = user.id
|
||||
verify_codes_dao.add_code(user_id=user.id, code='12345', code_type='sms')
|
||||
response = self.post(
|
||||
url_for('main.process_two_factor'), data={'sms_code': '12345'})
|
||||
url_for('main.two_factor'), data={'sms_code': '12345'})
|
||||
|
||||
def logout(self, user):
|
||||
self.get(url_for("main.logout"))
|
||||
|
||||
Reference in New Issue
Block a user