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
475dbc91
Commit
475dbc91
authored
Jan 03, 2017
by
Eric Fischer
Committed by
GitHub
Jan 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14251 from edx/efischer/add_test
Test for missing submission score
parents
e4d32e7f
69eae7b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lms/djangoapps/grades/tests/test_tasks.py
+10
-0
No files found.
lms/djangoapps/grades/tests/test_tasks.py
View file @
475dbc91
...
...
@@ -241,6 +241,16 @@ class RecalculateSubsectionGradeTest(ModuleStoreTestCase):
self
.
_apply_recalculate_subsection_grade
(
mock_score
=
None
)
self
.
_assert_retry_called
(
mock_retry
)
@patch
(
'lms.djangoapps.grades.tasks.recalculate_subsection_grade_v2.retry'
)
def
test_retry_subsection_grade_on_no_sub_score
(
self
,
mock_retry
):
self
.
set_up_course
()
with
patch
(
'lms.djangoapps.grades.tasks.sub_api.get_score'
)
as
mock_sub_score
:
mock_sub_score
.
return_value
=
None
self
.
_apply_recalculate_subsection_grade
(
mock_score
=
MagicMock
(
module_type
=
'openassessment'
)
)
self
.
_assert_retry_called
(
mock_retry
)
@patch
(
'lms.djangoapps.grades.signals.signals.SUBSECTION_SCORE_CHANGED.send'
)
@patch
(
'lms.djangoapps.grades.new.subsection_grade.SubsectionGradeFactory.update'
)
def
test_retry_first_time_only
(
self
,
mock_update
,
mock_course_signal
):
...
...
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