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
7b7b0690
Commit
7b7b0690
authored
Feb 07, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test_conditional
parent
7f706373
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
common/lib/xmodule/xmodule/tests/test_conditional.py
+5
-2
No files found.
common/lib/xmodule/xmodule/tests/test_conditional.py
View file @
7b7b0690
...
...
@@ -84,18 +84,21 @@ class ConditionalModuleTest(unittest.TestCase):
descriptor
=
self
.
modulestore
.
get_instance
(
course
.
id
,
location
,
depth
=
None
)
location
=
descriptor
.
location
instance_state
=
instance_states
.
get
(
location
.
category
,
None
)
print
"inner_get_module, location
.category=
%
s, inst_state=
%
s"
%
(
location
.
category
,
instance_state
)
print
"inner_get_module, location
=
%
s, inst_state=
%
s"
%
(
location
,
instance_state
)
return
descriptor
.
xmodule_constructor
(
test_system
)(
instance_state
,
shared_state
)
location
=
Location
([
"i4x"
,
"edX"
,
"cond_test"
,
"conditional"
,
"condone"
])
module
=
inner_get_module
(
location
)
def
replace_urls
(
text
,
staticfiles_prefix
=
None
,
replace_prefix
=
'/static/'
,
course_namespace
=
None
):
return
text
test_system
.
replace_urls
=
replace_urls
test_system
.
get_module
=
inner_get_module
module
=
inner_get_module
(
location
)
print
"module: "
,
module
print
"module definition: "
,
module
.
definition
print
"module children: "
,
module
.
get_children
()
print
"module display items (children): "
,
module
.
get_display_items
()
html
=
module
.
get_html
()
print
"html type: "
,
type
(
html
)
...
...
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