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
00050a08
Commit
00050a08
authored
Sep 13, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments
parent
640b7fe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
common/lib/xmodule/xmodule/peer_grading_module.py
+2
-2
common/lib/xmodule/xmodule/tests/test_peer_grading.py
+4
-4
No files found.
common/lib/xmodule/xmodule/peer_grading_module.py
View file @
00050a08
...
@@ -519,7 +519,7 @@ class PeerGradingModule(PeerGradingFields, XModule):
...
@@ -519,7 +519,7 @@ class PeerGradingModule(PeerGradingFields, XModule):
def
_find_corresponding_module_for_location
(
location
):
def
_find_corresponding_module_for_location
(
location
):
"""
"""
Find the peer grading module that
links to
the given location.
Find the peer grading module that
exists at
the given location.
"""
"""
try
:
try
:
return
self
.
descriptor
.
system
.
load_item
(
location
)
return
self
.
descriptor
.
system
.
load_item
(
location
)
...
@@ -528,7 +528,7 @@ class PeerGradingModule(PeerGradingFields, XModule):
...
@@ -528,7 +528,7 @@ class PeerGradingModule(PeerGradingFields, XModule):
log
.
error
(
"Problem {0} does not exist in this course."
.
format
(
location
))
log
.
error
(
"Problem {0} does not exist in this course."
.
format
(
location
))
raise
raise
except
NoPathToItem
:
except
NoPathToItem
:
# The linked problem does
n't exist
.
# The linked problem does
not have a path to it (ie is in a draft or other strange state)
.
log
.
error
(
"Cannot find a path to problem {0} in this course."
.
format
(
location
))
log
.
error
(
"Cannot find a path to problem {0} in this course."
.
format
(
location
))
raise
raise
...
...
common/lib/xmodule/xmodule/tests/test_peer_grading.py
View file @
00050a08
...
@@ -175,9 +175,9 @@ class PeerGradingModuleScoredTest(unittest.TestCase, DummyModulestore):
...
@@ -175,9 +175,9 @@ class PeerGradingModuleScoredTest(unittest.TestCase, DummyModulestore):
# Ensure that it cannot find any peer grading.
# Ensure that it cannot find any peer grading.
html
=
peer_grading
.
peer_grading
()
html
=
peer_grading
.
peer_grading
()
self
.
assertNot
RegexpMatches
(
html
,
"Peer-Graded"
)
self
.
assertNot
In
(
"Peer-Graded"
,
html
)
#Swap for our mock class, which will find peer grading.
#
Swap for our mock class, which will find peer grading.
peer_grading
.
peer_gs
=
MockPeerGradingServiceProblemList
()
peer_grading
.
peer_gs
=
MockPeerGradingServiceProblemList
()
html
=
peer_grading
.
peer_grading
()
html
=
peer_grading
.
peer_grading
()
self
.
assertRegexpMatches
(
html
,
"Peer-Graded"
)
self
.
assertIn
(
"Peer-Graded"
,
html
)
\ No newline at end of file
\ No newline at end of file
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