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
9c85d920
Commit
9c85d920
authored
12 years ago
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing tests created on master
parent
1f593428
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
cms/djangoapps/contentstore/tests/test_contentstore.py
+3
-2
common/lib/xmodule/xmodule/capa_module.py
+3
-0
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
+2
-4
common/lib/xmodule/xmodule/tests/test_capa_module.py
+0
-0
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
9c85d920
...
...
@@ -276,10 +276,11 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
course
=
ms
.
get_item
(
location
)
metadata
=
own_metadata
(
course
)
# add a bool piece of unknown metadata so we can verify we don't throw an exception
course
.
metadata
[
'new_metadata'
]
=
True
metadata
[
'new_metadata'
]
=
True
ms
.
update_metadata
(
location
,
course
.
metadata
)
ms
.
update_metadata
(
location
,
metadata
)
print
'Exporting to tempdir = {0}'
.
format
(
root_dir
)
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/capa_module.py
View file @
9c85d920
...
...
@@ -135,6 +135,9 @@ class CapaModule(XModule):
# see comment on randomization_bin
self
.
seed
=
randomization_bin
(
system
.
seed
,
self
.
location
.
url
)
if
self
.
max_attempts
==
''
:
self
.
max_attempts
=
None
# Need the problem location in openendedresponse to send out. Adding
# it to the system here seems like the least clunky way to get it
# there.
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
View file @
9c85d920
...
...
@@ -28,13 +28,11 @@ class AnnotatableModuleTestCase(unittest.TestCase):
<annotation title="footnote" body="the end">The Iliad of Homer by Samuel Butler</annotation>
</annotatable>
'''
definition
=
{
'data'
:
sample_xml
}
descriptor
=
Mock
()
instance_state
=
None
shared_state
=
None
module_data
=
{
'data'
:
sample_xml
}
def
setUp
(
self
):
self
.
annotatable
=
AnnotatableModule
(
test_system
(),
self
.
location
,
self
.
de
finition
,
self
.
descriptor
,
self
.
instance_state
,
self
.
shared_state
)
self
.
annotatable
=
AnnotatableModule
(
test_system
(),
self
.
location
,
self
.
de
scriptor
,
self
.
module_data
)
def
test_annotation_data_attr
(
self
):
el
=
etree
.
fromstring
(
'<annotation title="bar" body="foo" problem="0">test</annotation>'
)
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/tests/test_capa_module.py
View file @
9c85d920
This diff is collapsed.
Click to expand it.
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