Skip to content

fix: add display_number and display_org to v4 home test expected data - #38935

Draft
feanil wants to merge 1 commit into
masterfrom
feanil/fix-v4-home-test-display-fields
Draft

fix: add display_number and display_org to v4 home test expected data#38935
feanil wants to merge 1 commit into
masterfrom
feanil/fix-v4-home-test-display-fields

Conversation

@feanil

@feanil feanil commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Commit d83c598 added display_number and display_org to CourseCommonSerializerV2 (which CourseHomeTabSerializerV4 aliases), but only updated the v2 test.
  • Commit 4739ba1 created TestHomeCoursesViewSet.test_home_page_response in v4, but without those two fields in the expected data.
  • As a result, cms-2 CI fails with a dict mismatch on test_home_page_response.

This one-line fix adds the missing fields to the v4 test's expected OrderedDict, matching the serializer's field order.

Commit d83c598 added display_number and display_org to
CourseCommonSerializerV2 (which CourseHomeTabSerializerV4 aliases),
but only updated the v2 test. The v4 test_home_page_response was
left expecting the old 10-field format and now fails.
@feanil
feanil requested a review from Faraz32123 July 29, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant