add courses to programs to cache
This commit is contained in:
@@ -814,7 +814,7 @@ class TestGetHtmlMethod(BaseTestXmodule):
|
||||
|
||||
mocked_get_video.side_effect = side_effect
|
||||
|
||||
SOURCE_XML = """
|
||||
source_xml = """
|
||||
<video show_captions="true"
|
||||
display_name="A Name"
|
||||
sub="a_sub_file.srt.sjson" source="{source}"
|
||||
@@ -875,7 +875,7 @@ class TestGetHtmlMethod(BaseTestXmodule):
|
||||
initial_context['metadata']['duration'] = None
|
||||
|
||||
for data in cases:
|
||||
DATA = SOURCE_XML.format(
|
||||
DATA = source_xml.format(
|
||||
download_video=data['download_video'],
|
||||
source=data['source'],
|
||||
sources=data['sources'],
|
||||
|
||||
@@ -900,7 +900,7 @@ def program_marketing(request, program_uuid):
|
||||
"""
|
||||
Display the program marketing page.
|
||||
"""
|
||||
program_data = get_programs(request.site, uuid=program_uuid)
|
||||
program_data = get_programs(uuid=program_uuid)
|
||||
|
||||
if not program_data:
|
||||
raise Http404
|
||||
|
||||
Reference in New Issue
Block a user