mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Added new notification-python-client removed check on old one, fixed tests, live service will be broken.
This commit is contained in:
@@ -161,5 +161,6 @@ def test_should_create_new_code_for_user(notifications_admin,
|
||||
|
||||
|
||||
def _set_up_mocker(mocker):
|
||||
mocker.patch("app.admin_api_client.send_sms")
|
||||
mocker.patch("app.admin_api_client.send_email")
|
||||
# mocker.patch("app.admin_api_client.send_sms")
|
||||
# mocker.patch("app.admin_api_client.send_email")
|
||||
pass
|
||||
|
||||
@@ -15,7 +15,7 @@ def test_should_redirect_to_password_reset_sent_and_state_updated(notifications_
|
||||
notifications_admin_db,
|
||||
mocker,
|
||||
notify_db_session):
|
||||
mocker.patch("app.admin_api_client.send_email")
|
||||
# mocker.patch("app.admin_api_client.send_email")
|
||||
with notifications_admin.test_request_context():
|
||||
user = create_test_user('active')
|
||||
response = notifications_admin.test_client().post(url_for('.forgot_password'),
|
||||
|
||||
@@ -72,4 +72,5 @@ def test_should_redirect_to_forgot_password_when_user_is_active_should_be_reques
|
||||
|
||||
|
||||
def _set_up_mocker(mocker):
|
||||
mocker.patch("app.admin_api_client.send_sms")
|
||||
# mocker.patch("app.admin_api_client.send_sms")
|
||||
pass
|
||||
|
||||
@@ -62,8 +62,9 @@ def test_should_add_verify_codes_on_session(notifications_admin, notifications_a
|
||||
|
||||
|
||||
def _set_up_mocker(mocker):
|
||||
mocker.patch("app.admin_api_client.send_sms")
|
||||
mocker.patch("app.admin_api_client.send_email")
|
||||
# mocker.patch("app.admin_api_client.send_sms")
|
||||
# mocker.patch("app.admin_api_client.send_email")
|
||||
pass
|
||||
|
||||
|
||||
def test_should_return_400_if_password_is_blacklisted(notifications_admin, notifications_admin_db, notify_db_session):
|
||||
|
||||
@@ -119,5 +119,6 @@ def test_should_return_200_when_user_is_not_active(notifications_admin, notifica
|
||||
|
||||
|
||||
def _set_up_mocker(mocker):
|
||||
mocker.patch("app.admin_api_client.send_sms")
|
||||
mocker.patch("app.admin_api_client.send_email")
|
||||
# mocker.patch("app.admin_api_client.send_sms")
|
||||
# mocker.patch("app.admin_api_client.send_email")
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user