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
f623e429
Commit
f623e429
authored
Jun 18, 2013
by
Peter Baratta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting of docstrings; add more docstrings
parent
b68e1e20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
common/lib/xmodule/xmodule/capa_module.py
+0
-0
common/lib/xmodule/xmodule/tests/test_capa_module.py
+12
-4
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
f623e429
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/tests/test_capa_module.py
View file @
f623e429
# -*- coding: utf-8 -*-
"""Tests of the Capa XModule"""
"""
Tests of the Capa XModule
"""
#pylint: disable=C0111
#pylint: disable=R0904
#pylint: disable=C0103
...
...
@@ -48,12 +50,16 @@ class CapaFactory(object):
@staticmethod
def
input_key
():
""" Return the input key to use when passing GET parameters """
"""
Return the input key to use when passing GET parameters
"""
return
(
"input_"
+
CapaFactory
.
answer_key
())
@staticmethod
def
answer_key
():
""" Return the key stored in the capa problem answer dict """
"""
Return the key stored in the capa problem answer dict
"""
return
(
"-"
.
join
([
'i4x'
,
'edX'
,
'capa_test'
,
'problem'
,
'SampleProblem
%
d'
%
CapaFactory
.
num
])
+
"_2_1"
)
...
...
@@ -362,7 +368,9 @@ class CapaModuleTest(unittest.TestCase):
result
=
CapaModule
.
make_dict_of_responses
(
invalid_get_dict
)
def
_querydict_from_dict
(
self
,
param_dict
):
""" Create a Django QueryDict from a Python dictionary """
"""
Create a Django QueryDict from a Python dictionary
"""
# QueryDict objects are immutable by default, so we make
# a copy that we can update.
...
...
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