add courses to programs to cache

This commit is contained in:
Emma Green
2019-01-29 10:46:35 -05:00
parent f90be0031f
commit f2139bbe2f
15 changed files with 345 additions and 46 deletions

View File

@@ -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'],

View File

@@ -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