Skip to content

Commit d87c87a

Browse files
authored
Fix test errors in the import_courserun command tests (#3095)
1 parent d702e00 commit d87c87a

File tree

3 files changed

+155
-728
lines changed

3 files changed

+155
-728
lines changed

courses/api_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,13 @@ def _run_test_import_courserun_from_edx( # noqa: PLR0913
20662066
use_specific_course = CourseFactory.create().readable_id
20672067

20682068
responses.get(
2069-
f"{settings.OPENEDX_API_BASE_URL}/api/courses/v1/courses/{test_course_run_key}/",
2069+
url=f"{settings.OPENEDX_API_BASE_URL}/api/courses/v1/courses/{test_course_run_key}/",
2070+
json=mocked_detail,
2071+
status=status.HTTP_200_OK,
2072+
)
2073+
# sometimes in CI this gets run without the trailing slash
2074+
responses.get(
2075+
url=f"{settings.OPENEDX_API_BASE_URL}/api/courses/v1/courses/{test_course_run_key}",
20702076
json=mocked_detail,
20712077
status=status.HTTP_200_OK,
20722078
)

0 commit comments

Comments
 (0)