@@ -88,7 +88,6 @@ def test_video_constructor(self):
8888
8989 expected_context = {
9090 'autoadvance_enabled' : False ,
91- 'branding_info' : None ,
9291 'license' : None ,
9392 'bumper_metadata' : 'null' ,
9493 'block_id' : str (self .block .location ),
@@ -177,7 +176,6 @@ def test_video_constructor(self):
177176
178177 expected_context = {
179178 'autoadvance_enabled' : False ,
180- 'branding_info' : None ,
181179 'license' : None ,
182180 'bumper_metadata' : 'null' ,
183181 'block_id' : str (self .block .location ),
@@ -454,7 +452,6 @@ def test_get_html_track(self):
454452
455453 expected_context = {
456454 'autoadvance_enabled' : False ,
457- 'branding_info' : None ,
458455 'license' : None ,
459456 'bumper_metadata' : 'null' ,
460457 'block_id' : str (self .block .location ),
@@ -587,7 +584,6 @@ def test_get_html_source(self):
587584
588585 initial_context = {
589586 'autoadvance_enabled' : False ,
590- 'branding_info' : None ,
591587 'license' : None ,
592588 'bumper_metadata' : 'null' ,
593589 'block_id' : str (self .block .location ),
@@ -726,7 +722,6 @@ def test_get_html_with_mocked_edx_video_id(self):
726722
727723 initial_context = {
728724 'autoadvance_enabled' : False ,
729- 'branding_info' : None ,
730725 'license' : None ,
731726 'bumper_metadata' : 'null' ,
732727 'block_id' : str (self .block .location ),
@@ -914,7 +909,6 @@ def helper_get_html_with_edx_video_id(self, data):
914909
915910 initial_context = {
916911 'autoadvance_enabled' : False ,
917- 'branding_info' : None ,
918912 'license' : None ,
919913 'bumper_metadata' : 'null' ,
920914 'block_id' : str (self .block .location ),
@@ -971,21 +965,12 @@ def helper_get_html_with_edx_video_id(self, data):
971965 return context , expected_context
972966
973967 # pylint: disable=invalid-name
974- @patch ('xmodule.video_block.video_block.BrandingInfoConfig' )
975968 @patch ('xmodule.video_block.video_block.rewrite_video_url' )
976- def test_get_html_cdn_source (self , mocked_get_video , mock_BrandingInfoConfig ):
969+ def test_get_html_cdn_source (self , mocked_get_video ):
977970 """
978971 Test if sources got from CDN
979972 """
980973
981- mock_BrandingInfoConfig .get_config .return_value = {
982- "CN" : {
983- 'url' : 'http://www.xuetangx.com' ,
984- 'logo_src' : 'http://www.xuetangx.com/static/images/logo.png' ,
985- 'logo_tag' : 'Video hosted by XuetangX.com'
986- }
987- }
988-
989974 def side_effect (* args , ** kwargs ): # lint-amnesty, pylint: disable=unused-argument
990975 cdn = {
991976 'http://example.com/example.mp4' : 'http://cdn-example.com/example.mp4' ,
@@ -1031,11 +1016,6 @@ def side_effect(*args, **kwargs): # lint-amnesty, pylint: disable=unused-argume
10311016
10321017 initial_context = {
10331018 'autoadvance_enabled' : False ,
1034- 'branding_info' : {
1035- 'logo_src' : 'http://www.xuetangx.com/static/images/logo.png' ,
1036- 'logo_tag' : 'Video hosted by XuetangX.com' ,
1037- 'url' : 'http://www.xuetangx.com'
1038- },
10391019 'license' : None ,
10401020 'bumper_metadata' : 'null' ,
10411021 'block_id' : str (self .block .location ),
@@ -1138,7 +1118,6 @@ def test_get_html_cdn_source_external_video(self):
11381118
11391119 initial_context = {
11401120 'autoadvance_enabled' : False ,
1141- 'branding_info' : None ,
11421121 'license' : None ,
11431122 'bumper_metadata' : 'null' ,
11441123 'cdn_eval' : False ,
@@ -2380,7 +2359,6 @@ def test_bumper_metadata(self, get_url_for_profiles, get_bumper_settings, is_bum
23802359
23812360 expected_context = {
23822361 'autoadvance_enabled' : False ,
2383- 'branding_info' : None ,
23842362 'license' : None ,
23852363 'bumper_metadata' : json .dumps (OrderedDict ({
23862364 'saveStateUrl' : self .block .ajax_url + '/save_user_state' ,
@@ -2480,7 +2458,6 @@ def prepare_expected_context(self, autoadvanceenabled_flag, autoadvance_flag):
24802458
24812459 context = {
24822460 'autoadvance_enabled' : autoadvanceenabled_flag ,
2483- 'branding_info' : None ,
24842461 'block_id' : str (self .block .location ),
24852462 'course_id' : str (self .block .location .course_key ),
24862463 'license' : None ,
0 commit comments