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
503aff25
Commit
503aff25
authored
Aug 03, 2017
by
Tyler Hallada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address PR comments
parent
81e8f906
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
lms/djangoapps/grades/signals/signals.py
+3
-3
lms/djangoapps/grades/tests/test_services.py
+1
-2
No files found.
lms/djangoapps/grades/signals/signals.py
View file @
503aff25
...
@@ -83,9 +83,9 @@ SUBSECTION_SCORE_CHANGED = Signal(
...
@@ -83,9 +83,9 @@ SUBSECTION_SCORE_CHANGED = Signal(
)
)
# Signal that indicates that a user's score for a subsection has been overridden.
# Signal that indicates that a user's score for a subsection has been overridden.
# This signal is generated when a
n admin changes a user's exam attempt state to
# This signal is generated when a
user's exam attempt state is set to rejected or
#
rejected or to verified from rejected. This signal may also be generated by any
#
to verified from rejected. This signal may also be sent by any other client
#
other client
using the GradesService to override subsections in the future.
# using the GradesService to override subsections in the future.
SUBSECTION_OVERRIDE_CHANGED
=
Signal
(
SUBSECTION_OVERRIDE_CHANGED
=
Signal
(
providing_args
=
[
providing_args
=
[
'user_id'
,
# Integer User ID
'user_id'
,
# Integer User ID
...
...
lms/djangoapps/grades/tests/test_services.py
View file @
503aff25
...
@@ -59,6 +59,7 @@ class GradesServiceTests(ModuleStoreTestCase):
...
@@ -59,6 +59,7 @@ class GradesServiceTests(ModuleStoreTestCase):
}
}
def
tearDown
(
self
):
def
tearDown
(
self
):
PersistentSubsectionGradeOverride
.
objects
.
all
()
.
delete
()
# clear out all previous overrides
self
.
signal_patcher
.
stop
()
self
.
signal_patcher
.
stop
()
self
.
id_patcher
.
stop
()
self
.
id_patcher
.
stop
()
self
.
type_patcher
.
stop
()
self
.
type_patcher
.
stop
()
...
@@ -157,8 +158,6 @@ class GradesServiceTests(ModuleStoreTestCase):
...
@@ -157,8 +158,6 @@ class GradesServiceTests(ModuleStoreTestCase):
)
)
@ddt.unpack
@ddt.unpack
def
test_override_subsection_grade
(
self
,
override
,
expected
):
def
test_override_subsection_grade
(
self
,
override
,
expected
):
PersistentSubsectionGradeOverride
.
objects
.
all
()
.
delete
()
# clear out all previous overrides
self
.
service
.
override_subsection_grade
(
self
.
service
.
override_subsection_grade
(
user_id
=
self
.
user
.
id
,
user_id
=
self
.
user
.
id
,
course_key_or_id
=
self
.
course
.
id
,
course_key_or_id
=
self
.
course
.
id
,
...
...
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