-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create course home api DRF (#33173) (#33204) #22
Conversation
75c8900
to
342b469
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -18,6 +19,7 @@ class HomePageViewTest(CourseTestCase): | |||
""" | |||
Tests for HomePageView. | |||
""" | |||
MODULESTORE = TEST_DATA_SPLIT_MODULESTORE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This add new modulestore, the next commit add the import xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake I made a interactive rebase a this line was moved from the other commit
@@ -65,7 +67,7 @@ def test_home_page_response(self): | |||
} | |||
|
|||
self.assertEqual(response.status_code, status.HTTP_200_OK) | |||
self.assertDictEqual(expected_response, response.data) | |||
self.assertDictEqual(expected_response, json.loads(json.dumps(response.data))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I think the response.data
is in disorder so the json manipulation order it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
342b469
to
23fe279
Compare
8c770b5
to
e9ac94d
Compare
23fe279
to
7d8f3a5
Compare
Description
This is a backport of openedx#33173
There are two extra commits
How to test
/api/contentstore/v1/course_rerun/<course-id>
/api/contentstore/v1/home