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
009b3e9c
Commit
009b3e9c
authored
Oct 18, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1403 from edx/ned/small-dictfielddata-cleanups
Simple cleanups of DictFieldData
parents
19d3e31d
d3c7c083
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
9 deletions
+4
-9
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
+2
-5
common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py
+2
-0
common/lib/xmodule/xmodule/video_module.py
+0
-2
lms/djangoapps/open_ended_grading/utils.py
+0
-2
No files found.
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
View file @
009b3e9c
...
...
@@ -13,7 +13,6 @@ from xmodule.modulestore import Location
from
.
import
get_test_system
class
AnnotatableModuleTestCase
(
unittest
.
TestCase
):
location
=
Location
([
"i4x"
,
"edX"
,
"toy"
,
"annotatable"
,
"guided_discussion"
])
sample_xml
=
'''
<annotatable display_name="Iliad">
<instructions>Read the text.</instructions>
...
...
@@ -30,14 +29,12 @@ class AnnotatableModuleTestCase(unittest.TestCase):
<annotation title="footnote" body="the end">The Iliad of Homer by Samuel Butler</annotation>
</annotatable>
'''
descriptor
=
Mock
()
field_data
=
DictFieldData
({
'data'
:
sample_xml
})
def
setUp
(
self
):
self
.
annotatable
=
AnnotatableModule
(
self
.
descriptor
,
Mock
()
,
get_test_system
(),
self
.
field_data
,
DictFieldData
({
'data'
:
self
.
sample_xml
})
,
ScopeIds
(
None
,
None
,
None
,
None
)
)
...
...
common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py
View file @
009b3e9c
...
...
@@ -68,6 +68,8 @@ NOT_STUDIO_EDITABLE = (
class
TestXBlockWrapper
(
object
):
"""Helper methods used in test case classes below."""
@property
def
leaf_module_runtime
(
self
):
runtime
=
ModuleSystem
(
...
...
common/lib/xmodule/xmodule/video_module.py
View file @
009b3e9c
...
...
@@ -28,8 +28,6 @@ from xmodule.xml_module import is_pointer_tag, name_to_pathname, deserialize_fie
from
xmodule.modulestore
import
Location
from
xblock.fields
import
Scope
,
String
,
Boolean
,
Float
,
List
,
Integer
,
ScopeIds
from
xblock.field_data
import
DictFieldData
from
xmodule.modulestore.inheritance
import
InheritanceKeyValueStore
from
xblock.runtime
import
DbModel
...
...
lms/djangoapps/open_ended_grading/utils.py
View file @
009b3e9c
...
...
@@ -12,8 +12,6 @@ from django.conf import settings
from
mitxmako.shortcuts
import
render_to_string
from
xblock.field_data
import
DictFieldData
import
logging
log
=
logging
.
getLogger
(
__name__
)
...
...
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