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
7873a44b
Commit
7873a44b
authored
Jan 14, 2013
by
Chris Dodge
Committed by
cahrens
Jan 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for about content overrides
parent
fb4766e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
cms/djangoapps/contentstore/tests/tests.py
+7
-0
common/test/data/full/about/6.002_Spring_2012/effort.html
+2
-0
common/test/data/full/about/effort.html
+2
-0
No files found.
cms/djangoapps/contentstore/tests/tests.py
View file @
7873a44b
...
@@ -350,6 +350,13 @@ class ContentStoreTest(TestCase):
...
@@ -350,6 +350,13 @@ class ContentStoreTest(TestCase):
def
test_edit_unit_full
(
self
):
def
test_edit_unit_full
(
self
):
self
.
check_edit_unit
(
'full'
)
self
.
check_edit_unit
(
'full'
)
def
test_about_overrides
(
self
):
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
ms
=
modulestore
(
'direct'
)
effort
=
ms
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'about'
,
'effort'
,
None
]))
self
.
assertEqual
(
effort
.
definition
[
'data'
],
'6 hours'
)
def
test_clone_course
(
self
):
def
test_clone_course
(
self
):
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
...
...
common/test/data/full/about/6.002_Spring_2012/effort.html
0 → 100644
View file @
7873a44b
6 hours
\ No newline at end of file
common/test/data/full/about/effort.html
0 → 100644
View file @
7873a44b
12 hours
\ No newline at end of file
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