Commit a28b02ae by Julian Arni

Pep8 and pylint fixes

parent fcd11d93
......@@ -35,7 +35,7 @@ class ImportTestCase(CourseTestCase):
# OK course:
good_dir = tempfile.mkdtemp(dir=self.content_dir)
os.makedirs(os.path.join(good_dir, "course"))
with open(os.path.join(good_dir, "course.xml") , "w+") as f:
with open(os.path.join(good_dir, "course.xml"), "w+") as f:
f.write('<course url_name="2013_Spring" org="EDx" course="0.00x"/>')
with open(os.path.join(good_dir, "course", "2013_Spring.xml"), "w+") as f:
......@@ -82,4 +82,3 @@ class ImportTestCase(CourseTestCase):
"course-data": [gtar]
})
self.assert2XX(resp.status_code)
......@@ -19,7 +19,6 @@ from django.core.files.temp import NamedTemporaryFile
from django.views.decorators.http import require_http_methods
from mitxmako.shortcuts import render_to_response
from cache_toolbox.core import del_cached_content
from auth.authz import create_all_course_groups
from xmodule.modulestore.xml_importer import import_from_xml
......
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