Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a28b02ae
Commit
a28b02ae
authored
Aug 22, 2013
by
Julian Arni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pep8 and pylint fixes
parent
fcd11d93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
cms/djangoapps/contentstore/tests/test_import_export.py
+1
-2
cms/djangoapps/contentstore/views/import_export.py
+0
-1
No files found.
cms/djangoapps/contentstore/tests/test_import_export.py
View file @
a28b02ae
...
...
@@ -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
)
cms/djangoapps/contentstore/views/import_export.py
View file @
a28b02ae
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment