@@ -148,7 +148,7 @@ def test_video_constructor(self):
148
148
149
149
mako_service = self .block .runtime .service (self .block , 'mako' )
150
150
assert get_context_dict_from_string (context ) == \
151
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
151
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
152
152
153
153
154
154
class TestVideoNonYouTube (TestVideo ): # pylint: disable=test-inherits-tests
@@ -233,7 +233,7 @@ def test_video_constructor(self):
233
233
234
234
mako_service = self .block .runtime .service (self .block , 'mako' )
235
235
expected_result = get_context_dict_from_string (
236
- mako_service .render_template ('video.html' , expected_context )
236
+ mako_service .render_lms_template ('video.html' , expected_context )
237
237
)
238
238
assert get_context_dict_from_string (context ) == expected_result
239
239
assert expected_result ['download_video_link' ] == 'example.mp4'
@@ -506,7 +506,7 @@ def test_get_html_track(self):
506
506
507
507
mako_service = self .block .runtime .service (self .block , 'mako' )
508
508
assert get_context_dict_from_string (context ) == \
509
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
509
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
510
510
511
511
def test_get_html_source (self ):
512
512
# lint-amnesty, pylint: disable=invalid-name, redefined-outer-name
@@ -620,7 +620,7 @@ def test_get_html_source(self):
620
620
621
621
mako_service = self .block .runtime .service (self .block , 'mako' )
622
622
assert get_context_dict_from_string (context ) == \
623
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
623
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
624
624
625
625
def test_get_html_with_non_existent_edx_video_id (self ):
626
626
"""
@@ -766,7 +766,7 @@ def test_get_html_with_mocked_edx_video_id(self):
766
766
767
767
mako_service = self .block .runtime .service (self .block , 'mako' )
768
768
assert get_context_dict_from_string (context ) == \
769
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
769
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
770
770
771
771
def test_get_html_with_existing_edx_video_id (self ):
772
772
"""
@@ -794,7 +794,7 @@ def test_get_html_with_existing_edx_video_id(self):
794
794
context , expected_context = self .helper_get_html_with_edx_video_id (data )
795
795
mako_service = self .block .runtime .service (self .block , 'mako' )
796
796
assert get_context_dict_from_string (context ) == \
797
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
797
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
798
798
799
799
def test_get_html_with_existing_unstripped_edx_video_id (self ):
800
800
"""
@@ -825,7 +825,7 @@ def test_get_html_with_existing_unstripped_edx_video_id(self):
825
825
826
826
mako_service = self .block .runtime .service (self .block , 'mako' )
827
827
assert get_context_dict_from_string (context ) == \
828
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
828
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
829
829
830
830
def encode_and_create_video (self , edx_video_id ):
831
831
"""
@@ -1050,7 +1050,7 @@ def side_effect(*args, **kwargs): # lint-amnesty, pylint: disable=unused-argume
1050
1050
1051
1051
mako_service = self .block .runtime .service (self .block , 'mako' )
1052
1052
assert get_context_dict_from_string (context ) == \
1053
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
1053
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
1054
1054
1055
1055
# pylint: disable=invalid-name
1056
1056
def test_get_html_cdn_source_external_video (self ):
@@ -1156,7 +1156,7 @@ def test_get_html_cdn_source_external_video(self):
1156
1156
1157
1157
mako_service = self .block .runtime .service (self .block , 'mako' )
1158
1158
assert get_context_dict_from_string (context ) == \
1159
- get_context_dict_from_string (mako_service .render_template ('video.html' , expected_context ))
1159
+ get_context_dict_from_string (mako_service .render_lms_template ('video.html' , expected_context ))
1160
1160
1161
1161
@ddt .data (
1162
1162
(True , ['youtube' , 'desktop_webm' , 'desktop_mp4' , 'hls' ]),
@@ -2409,7 +2409,7 @@ def test_bumper_metadata(self, get_url_for_profiles, get_bumper_settings, is_bum
2409
2409
}
2410
2410
2411
2411
mako_service = self .block .runtime .service (self .block , 'mako' )
2412
- expected_content = mako_service .render_template ('video.html' , expected_context )
2412
+ expected_content = mako_service .render_lms_template ('video.html' , expected_context )
2413
2413
assert get_context_dict_from_string (content ) == get_context_dict_from_string (expected_content )
2414
2414
2415
2415
@@ -2506,7 +2506,7 @@ def assert_content_matches_expectations(self, autoadvanceenabled_must_be, autoad
2506
2506
2507
2507
mako_service = self .block .runtime .service (self .block , 'mako' )
2508
2508
with override_settings (FEATURES = self .FEATURES ):
2509
- expected_content = mako_service .render_template ('video.html' , expected_context )
2509
+ expected_content = mako_service .render_lms_template ('video.html' , expected_context )
2510
2510
2511
2511
assert get_context_dict_from_string (content ) == get_context_dict_from_string (expected_content )
2512
2512
0 commit comments