Skip to content

Commit 77fa03c

Browse files
committed
Fix failing tests
1 parent c208c25 commit 77fa03c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

courses/models_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def test_enrollment_url(self):
366366
)
367367
assert course_run.course.url == "http://enrollment.url/"
368368

369-
@override_settings(AUTH_CALLBACK_URL=BASE_URL)
369+
@override_settings(EDXORG_CALLBACK_URL=BASE_URL)
370370
def test_url_with_course_key(self):
371371
"""Test course url with a course key and no enrollment_url"""
372372
course_run = CourseRunFactory.create(

financialaid/views_pytest_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_context(self, settings, staff_client, program_review_url):
204204
settings.GA_TRACKING_ID = 'track'
205205
settings.REACT_GA_DEBUG = True
206206
settings.EDXORG_CALLBACK_URL = 'edx_base_url'
207-
settings.MITXONLINE_BASE_URL = "mitxonline_base_url"
207+
settings.MITXONLINE_CALLBACK_URL = "mitxonline_base_url"
208208
resp = staff_client.get(program_review_url)
209209

210210
assert resp.context['has_zendesk_widget'] is True
@@ -215,7 +215,7 @@ def test_context(self, settings, staff_client, program_review_url):
215215
'reactGaDebug': settings.REACT_GA_DEBUG,
216216
'authenticated': True,
217217
'edx_base_url': settings.EDXORG_CALLBACK_URL,
218-
"mitxonline_base_url": settings.MITXONLINE_BASE_URL,
218+
"mitxonline_base_url": settings.MITXONLINE_CALLBACK_URL,
219219
}
220220

221221

ui/views_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def test_dashboard_settings(self):
249249
GA_TRACKING_ID=ga_tracking_id,
250250
REACT_GA_DEBUG=react_ga_debug,
251251
EDXORG_CALLBACK_URL=edx_base_url,
252-
MITXONLINE_BASE_URL=mitxonline_base_url,
252+
MITXONLINE_CALLBACK_URL=mitxonline_base_url,
253253
MITXONLINE_URL=mitxonline_url,
254254
WEBPACK_DEV_SERVER_HOST=host,
255255
EMAIL_SUPPORT=email_support,
@@ -710,7 +710,7 @@ def test_users_logged_in(self):
710710
GA_TRACKING_ID=ga_tracking_id,
711711
REACT_GA_DEBUG=react_ga_debug,
712712
EDXORG_CALLBACK_URL=edx_base_url,
713-
MITXONLINE_BASE_URL=mitxonline_base_url,
713+
MITXONLINE_CALLBACK_URL=mitxonline_base_url,
714714
MITXONLINE_URL=mitxonline_url,
715715
WEBPACK_DEV_SERVER_HOST=host,
716716
EMAIL_SUPPORT=email_support,
@@ -795,7 +795,7 @@ def test_users_anonymous(self):
795795
GA_TRACKING_ID=ga_tracking_id,
796796
REACT_GA_DEBUG=react_ga_debug,
797797
EDXORG_CALLBACK_URL=edx_base_url,
798-
MITXONLINE_BASE_URL=mitxonline_base_url,
798+
MITXONLINE_CALLBACK_URL=mitxonline_base_url,
799799
MITXONLINE_URL=mitxonline_url,
800800
WEBPACK_DEV_SERVER_HOST=host,
801801
EMAIL_SUPPORT=email_support,

0 commit comments

Comments
 (0)