Commit 373b7a82 by Piotr Mitros

Slightly more comprehensive check

parent 8480ccd1
...@@ -23,7 +23,7 @@ class Command(BaseCommand): ...@@ -23,7 +23,7 @@ class Command(BaseCommand):
print "==============> Invalid (non-alphanumeric) filename", filename print "==============> Invalid (non-alphanumeric) filename", filename
check = False check = False
print "Confirming all modules render. Nothing should print during this step. " print "Confirming all modules render. Nothing should print during this step. "
for module in course.xpath('//problem|//html|//video'): for module in course.xpath('//problem|//html|//video|//vertical|//sequential|/tab'):
module_class=mitx.courseware.module_render.modx_modules[module.tag] module_class=mitx.courseware.module_render.modx_modules[module.tag]
# TODO: Abstract this out in render_module.py # TODO: Abstract this out in render_module.py
try: try:
...@@ -44,6 +44,9 @@ class Command(BaseCommand): ...@@ -44,6 +44,9 @@ class Command(BaseCommand):
etree.parse(sections_dir+'/'+f) etree.parse(sections_dir+'/'+f)
else: else:
print "Skipping check of include files -- no section includes dir ("+sections_dir+")" print "Skipping check of include files -- no section includes dir ("+sections_dir+")"
# TODO: print "Checking course properly annotated with preprocess.py"
if check: if check:
print 'Courseware passes all checks!' print 'Courseware passes all checks!'
else: else:
......
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