Skip to content

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

Merged
feanil merged 1 commit into
masterfrom
feanil/fix-v4-home-test-display-fields
Jul 30, 2026
Merged

fix: add display_number and display_org to v4 home test expected data#38935
feanil merged 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.

@feanil
feanil requested a review from Faraz32123 July 29, 2026 18:05
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 force-pushed the feanil/fix-v4-home-test-display-fields branch from 632ea80 to 4745295 Compare July 30, 2026 13:34
@feanil
feanil marked this pull request as ready for review July 30, 2026 13:37
@feanil

feanil commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@Faraz32123 it looks like the merge of the BIG api PR had some interactions with some other changes and so some tests started failing. Using this PR to fix the issues so we can get master back to green.

@Faraz32123 Faraz32123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes Looks good to me.

@feanil
feanil merged commit 403a89a into master Jul 30, 2026
46 checks passed
@feanil
feanil deleted the feanil/fix-v4-home-test-display-fields branch July 30, 2026 14:39
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.

2 participants