Commit f0f7e0dc by Calen Pennington

Fix more tests

parent bd822b9d
......@@ -70,13 +70,13 @@ class TestCohorts(django.test.TestCase):
"id": to_id(name)})
for name in discussions)
course.metadata["discussion_topics"] = topics
course.discussion_topics = topics
d = {"cohorted": cohorted}
if cohorted_discussions is not None:
d["cohorted_discussions"] = [to_id(name)
for name in cohorted_discussions]
course.metadata["cohort_config"] = d
course.cohort_config = d
def setUp(self):
......
......@@ -260,7 +260,7 @@ def get_module_for_descriptor(user, request, descriptor, model_data_cache, cours
# by the replace_static_urls code below
replace_urls=partial(
static_replace.replace_static_urls,
data_directory=descriptor.data_dir,
data_directory=getattr(descriptor, 'data_dir', None),
course_namespace=descriptor.location._replace(category=None, name=None),
),
node_path=settings.NODE_PATH,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment