From f64e1254f31b3d0b93ba336dec34f5d6ef6fbb14 Mon Sep 17 00:00:00 2001 From: Muhammad Anas Date: Mon, 2 Dec 2024 14:05:09 +0000 Subject: [PATCH] fix: tests --- courseware/api_test.py | 4 ++-- mitxpro/management/commands/configure_instance.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/courseware/api_test.py b/courseware/api_test.py index cea22306f..374d871d3 100644 --- a/courseware/api_test.py +++ b/courseware/api_test.py @@ -174,7 +174,7 @@ def create_token_responses(settings): code = "ghi789" responses.add( responses.GET, - f"{settings.OPENEDX_API_BASE_URL}/auth/login/mitxpro-oauth2/?auth_entry=login", + f"{settings.OPENEDX_API_BASE_URL}/auth/login/ol-oauth2/?auth_entry=login", status=status.HTTP_200_OK, ) responses.add( @@ -350,7 +350,7 @@ def test_update_edx_user_email(settings, user): code = "ghi789" responses.add( responses.GET, - f"{settings.OPENEDX_API_BASE_URL}/auth/login/mitxpro-oauth2/?auth_entry=login", + f"{settings.OPENEDX_API_BASE_URL}/auth/login/ol-oauth2/?auth_entry=login", status=status.HTTP_200_OK, ) responses.add( diff --git a/mitxpro/management/commands/configure_instance.py b/mitxpro/management/commands/configure_instance.py index 41b45cebc..8ebabeba5 100644 --- a/mitxpro/management/commands/configure_instance.py +++ b/mitxpro/management/commands/configure_instance.py @@ -114,8 +114,8 @@ def handle(self, *args, **kwargs): # noqa: ARG002 if kwargs["platform"] == "macos": redirects = "\n".join( [ - f"http://{edx_host}/auth/complete/mitxpro-oauth2/", - f"http://host.docker.internal{edx_gateway_port}/auth/complete/mitxpro-oauth2/", + f"http://{edx_host}/auth/complete/ol-oauth2/", + f"http://host.docker.internal{edx_gateway_port}/auth/complete/ol-oauth2/", ] ) else: @@ -129,8 +129,8 @@ def handle(self, *args, **kwargs): # noqa: ARG002 redirects = "\n".join( [ - f"http://{edx_host}/auth/complete/mitxpro-oauth2/", - f"http://{kwargs['gateway']}{edx_gateway_port}/auth/complete/mitxpro-oauth2/", + f"http://{edx_host}/auth/complete/ol-oauth2/", + f"http://{kwargs['gateway']}{edx_gateway_port}/auth/complete/ol-oauth2/", ] )