Skip to content

Fix lms/djangoapps/courseware/tests/test_video_mongo.py - #37856

Merged
farhan merged 1 commit into
farhan/enable-video-block-4from
farhan/fix-test-cases
Jan 12, 2026
Merged

farhan merged 1 commit into
farhan/enable-video-block-4from
farhan/fix-test-cases

Conversation

@farhan

@farhan farhan commented Jan 9, 2026 •

Copy link
Copy Markdown
Contributor

Ticket: openedx/public-engineering#475

Fix video block test cases for extracted one

@farhan
farhan requested a review from ttqureshi January 9, 2026 16:19
@farhan
farhan marked this pull request as ready for review January 12, 2026 08:59
@farhan farhan changed the title chore: Fix video block test cases for extracted one Fix xmodule/tests/test_video.py for extracted video block Jan 12, 2026
@ttqureshi

Copy link
Copy Markdown
Member

@farhan
Please change the PR title to "Fix lms/djangoapps/courseware/tests/test_video_mongo.py" for extracted video block.

also update the linked issue in the PR description to: openedx/public-engineering#475

Comment on lines +69 to +77
if settings.USE_EXTRACTED_VIDEO_BLOCK:
from xblocks_contrib.video import bumper_utils
bumper_utils_path = 'xblocks_contrib.video.bumper_utils'
video_block_path = 'xblocks_contrib.video.video'
else:
from xmodule.video_block import bumper_utils
bumper_utils_path = 'xmodule.video_block.bumper_utils'
video_block_path = 'xmodule.video_block.video_block'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this import is required.

from xblocks_contrib.video import bumper_utils

The bumper_utils import doesn’t seem necessary here (including the one on line 52). We’re only using string-based paths for patching, so it doesn’t need to be imported unless it’s directly referenced.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

as per discussion it required

@farhan farhan changed the title Fix xmodule/tests/test_video.py for extracted video block Fix lms/djangoapps/courseware/tests/test_video_mongo.py Jan 12, 2026

@ttqureshi ttqureshi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM ✔️

@farhan
farhan merged commit 2d47366 into farhan/enable-video-block-4 Jan 12, 2026
50 of 64 checks passed
@farhan
farhan deleted the farhan/fix-test-cases branch January 12, 2026 14:03
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