Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
21f84cbd
Commit
21f84cbd
authored
Mar 19, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test for the circular import fix
parent
6b9476a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
apps/openassessment/assessment/test/test_peer.py
+4
-1
No files found.
apps/openassessment/assessment/test/test_peer.py
View file @
21f84cbd
...
...
@@ -345,7 +345,10 @@ class TestPeerApi(TestCase):
# Tim has met the critera, and should now have a score.
# We patch the call to `self_api.is_complete()` simulate having completed a self-assessment.
with
patch
(
'openassessment.workflow.models.self_api.is_complete'
)
as
mock_complete
:
# TODO: currently, we need to import `self_api` within the `_is_self_complete` method
# to avoid circular imports. This means we can't patch self_api directly.
from
openassessment.workflow.models
import
AssessmentWorkflow
with
patch
.
object
(
AssessmentWorkflow
,
'_is_self_complete'
)
as
mock_complete
:
mock_complete
.
return_value
=
True
score
=
workflow_api
.
get_workflow_for_submission
(
sub
[
"uuid"
],
requirements
)[
"score"
]
...
...
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