From 1910b2e15728dc92cd5c52569f5643f23781fe7f Mon Sep 17 00:00:00 2001 From: Bryan Wilson Date: Tue, 27 Jun 2023 12:28:22 -0700 Subject: [PATCH] missed another tahoe_idp test that needed TAHOE_IDP_CONFIGS --- .../appsembler/tahoe_idp/tests/test_tahoe_idp_email_change.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/appsembler/tahoe_idp/tests/test_tahoe_idp_email_change.py b/openedx/core/djangoapps/appsembler/tahoe_idp/tests/test_tahoe_idp_email_change.py index a240b4db7f3..a341cb768e9 100644 --- a/openedx/core/djangoapps/appsembler/tahoe_idp/tests/test_tahoe_idp_email_change.py +++ b/openedx/core/djangoapps/appsembler/tahoe_idp/tests/test_tahoe_idp_email_change.py @@ -4,7 +4,7 @@ from django.conf import settings from django.core import mail -from django.test import TestCase +from django.test import override_settings, TestCase from django.urls import reverse from unittest.mock import patch @@ -37,6 +37,7 @@ def test_successful_email_change_without_idp(self, mock_update_user_email): 'Should not use idp unless explicitly enabled via ENABLE_TAHOE_IDP' ) + @override_settings(TAHOE_IDP_CONFIGS={'API_KEY':'fake', 'BASE_URL': 'http://localhost'}) @patch('tahoe_idp.api.update_user_email') def test_successful_email_change_with_idp(self, mock_update_user_email): """