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
02e224df
Commit
02e224df
authored
Nov 08, 2014
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PEP8: E203 whitespace before ':'
parent
01960483
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/peer_grading_service.py
+8
-1
common/lib/xmodule/xmodule/tests/__init__.py
+7
-1
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/peer_grading_service.py
View file @
02e224df
...
@@ -160,4 +160,11 @@ class MockPeerGradingService(object):
...
@@ -160,4 +160,11 @@ class MockPeerGradingService(object):
]}
]}
def
get_data_for_location
(
self
,
problem_location
,
student_id
):
def
get_data_for_location
(
self
,
problem_location
,
student_id
):
return
{
"version"
:
1
,
"count_graded"
:
3
,
"count_required"
:
3
,
"success"
:
True
,
"student_sub_count"
:
1
,
'submissions_available'
:
0
}
return
{
"version"
:
1
,
"count_graded"
:
3
,
"count_required"
:
3
,
"success"
:
True
,
"student_sub_count"
:
1
,
'submissions_available'
:
0
,
}
common/lib/xmodule/xmodule/tests/__init__.py
View file @
02e224df
...
@@ -89,7 +89,13 @@ def get_test_system(course_id=SlashSeparatedCourseKey('org', 'course', 'run')):
...
@@ -89,7 +89,13 @@ def get_test_system(course_id=SlashSeparatedCourseKey('org', 'course', 'run')):
filestore
=
Mock
(),
filestore
=
Mock
(),
debug
=
True
,
debug
=
True
,
hostname
=
"edx.org"
,
hostname
=
"edx.org"
,
xqueue
=
{
'interface'
:
None
,
'callback_url'
:
'/'
,
'default_queuename'
:
'testqueue'
,
'waittime'
:
10
,
'construct_callback'
:
Mock
(
side_effect
=
"/"
)},
xqueue
=
{
'interface'
:
None
,
'callback_url'
:
'/'
,
'default_queuename'
:
'testqueue'
,
'waittime'
:
10
,
'construct_callback'
:
Mock
(
side_effect
=
"/"
),
},
node_path
=
os
.
environ
.
get
(
"NODE_PATH"
,
"/usr/local/lib/node_modules"
),
node_path
=
os
.
environ
.
get
(
"NODE_PATH"
,
"/usr/local/lib/node_modules"
),
anonymous_student_id
=
'student'
,
anonymous_student_id
=
'student'
,
open_ended_grading_interface
=
open_ended_grading_interface
,
open_ended_grading_interface
=
open_ended_grading_interface
,
...
...
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