Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas12091101 committed Dec 2, 2024
1 parent 14587c1 commit f64e125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions courseware/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions mitxpro/management/commands/configure_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/",
]
)

Expand Down

0 comments on commit f64e125

Please sign in to comment.