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
3cf865a8
Commit
3cf865a8
authored
May 13, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added another unit test check point for export/import of classic textbooks
parent
d98e726a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
cms/djangoapps/contentstore/tests/test_contentstore.py
+6
-1
common/lib/xmodule/xmodule/course_module.py
+1
-1
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
3cf865a8
...
...
@@ -226,7 +226,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
module_store
=
modulestore
(
'direct'
)
course
=
module_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'course'
,
'6.002_Spring_2012'
,
None
]))
self
.
assertGreater
(
len
(
course
.
textbooks
),
0
)
self
.
assertGreater
(
len
(
course
.
textbooks
),
0
)
def
test_static_tab_reordering
(
self
):
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
...
...
@@ -498,6 +498,11 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self
.
assertTrue
(
getattr
(
test_private_vertical
,
'is_draft'
,
False
))
# make sure the textbook survived the export/import
course
=
module_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'course'
,
'6.002_Spring_2012'
,
None
]))
self
.
assertGreater
(
len
(
course
.
textbooks
),
0
)
shutil
.
rmtree
(
root_dir
)
def
test_course_handouts_rewrites
(
self
):
...
...
common/lib/xmodule/xmodule/course_module.py
View file @
3cf865a8
...
...
@@ -392,7 +392,7 @@ class CourseDescriptor(CourseFields, SequenceDescriptor):
textbook_xml_object
.
set
(
'book_url'
,
textbook
.
book_url
)
xml_object
.
append
(
textbook_xml_object
)
return
xml_object
def
has_ended
(
self
):
...
...
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