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
ed1f7ea5
Commit
ed1f7ea5
authored
Dec 18, 2014
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactoring for cancelled peer workflow test.
TNL-900
parent
143fe3ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
openassessment/assessment/test/test_peer.py
+4
-4
No files found.
openassessment/assessment/test/test_peer.py
View file @
ed1f7ea5
...
@@ -908,8 +908,8 @@ class TestPeerApi(CacheResetTest):
...
@@ -908,8 +908,8 @@ class TestPeerApi(CacheResetTest):
PeerWorkflow
.
create_item
(
buffy_workflow
,
xander_sub
[
"uuid"
])
PeerWorkflow
.
create_item
(
buffy_workflow
,
xander_sub
[
"uuid"
])
# Check to see if Buffy is actively reviewing Xander's submission.
# Check to see if Buffy is actively reviewing Xander's submission.
item
=
buffy_workflow
.
find_active_assessments
(
)
submission
=
peer_api
.
get_submission_to_assess
(
buffy_sub
[
'uuid'
],
1
)
self
.
assertEqual
(
xander_sub
[
"uuid"
],
item
.
submission_uuid
)
self
.
assertEqual
(
xander_sub
[
"uuid"
],
submission
[
'uuid'
]
)
# Cancel the Xander's submission.
# Cancel the Xander's submission.
xander_workflow
=
PeerWorkflow
.
get_by_submission_uuid
(
xander_sub
[
'uuid'
])
xander_workflow
=
PeerWorkflow
.
get_by_submission_uuid
(
xander_sub
[
'uuid'
])
...
@@ -919,8 +919,8 @@ class TestPeerApi(CacheResetTest):
...
@@ -919,8 +919,8 @@ class TestPeerApi(CacheResetTest):
# Check to see if Buffy is actively reviewing Xander's submission.
# Check to see if Buffy is actively reviewing Xander's submission.
# She isn't able to get the submission to assess.
# She isn't able to get the submission to assess.
item
=
buffy_workflow
.
find_active_assessments
(
)
submission
=
peer_api
.
get_submission_to_assess
(
buffy_sub
[
'uuid'
],
1
)
self
.
assertIsNone
(
item
)
self
.
assertIsNone
(
submission
)
# Try to assess the cancelled submission
# Try to assess the cancelled submission
# This will raise PeerAssessmentWorkflowError
# This will raise PeerAssessmentWorkflowError
...
...
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