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
634d3b97
Commit
634d3b97
authored
Nov 13, 2015
by
Eric Fischer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #771 from edx/efischer/remove_test_code
Remove unneeded test code
parents
248eb2d1
10d42416
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
43 deletions
+2
-43
openassessment/assessment/test/test_staff.py
+2
-43
No files found.
openassessment/assessment/test/test_staff.py
View file @
634d3b97
# coding=utf-8
import
datetime
import
pytz
import
copy
import
mock
from
django.db
import
DatabaseError
,
IntegrityError
from
django.utils
import
timezone
from
django.db
import
DatabaseError
from
ddt
import
ddt
,
file_data
from
nose.tools
import
raises
from
openassessment.test_utils
import
CacheResetTest
from
openassessment.assessment.api
import
staff
as
staff_api
from
openassessment.assessment.api.self
import
create_assessment
as
self_assess
from
openassessment.assessment.models
import
(
Assessment
,
AssessmentPart
,
AssessmentFeedback
,
AssessmentFeedbackOption
,
PeerWorkflow
,
PeerWorkflowItem
)
from
openassessment.assessment.models
import
Assessment
from
openassessment.assessment.errors
import
StaffAssessmentRequestError
,
StaffAssessmentInternalError
from
openassessment.workflow
import
api
as
workflow_api
from
submissions
import
api
as
sub_api
...
...
@@ -27,8 +21,6 @@ STUDENT_ITEM = dict(
item_type
=
"Peer_Submission"
,
)
ANSWER_ONE
=
u"this is my answer!"
# Possible points: 14
RUBRIC_DICT
=
{
"criteria"
:
[
...
...
@@ -94,18 +86,6 @@ ASSESSMENT_DICT = {
},
}
# Answers are against RUBRIC_DICT -- this is worth 0 points
ASSESSMENT_DICT_FAIL
=
{
'overall_feedback'
:
u"fail"
,
'criterion_feedback'
:
{},
'options_selected'
:
{
"secret"
:
"no"
,
u"ⓢⓐⓕⓔ"
:
"no"
,
"giveup"
:
"unwilling"
,
"singing"
:
"yes"
,
}
}
# Answers are against RUBRIC_DICT -- this is worth 14 points
ASSESSMENT_DICT_PASS
=
{
'overall_feedback'
:
u"这是中国"
,
...
...
@@ -118,27 +98,6 @@ ASSESSMENT_DICT_PASS = {
}
}
# Answers are against RUBRIC_DICT -- this is worth 14 points
# Feedback text is one character over the limit.
LONG_FEEDBACK_TEXT
=
u"是"
*
Assessment
.
MAX_FEEDBACK_SIZE
+
"."
ASSESSMENT_DICT_HUGE
=
{
'overall_feedback'
:
LONG_FEEDBACK_TEXT
,
'criterion_feedback'
:
{
"secret"
:
LONG_FEEDBACK_TEXT
,
u"ⓢⓐⓕⓔ"
:
LONG_FEEDBACK_TEXT
,
"giveup"
:
LONG_FEEDBACK_TEXT
,
"singing"
:
LONG_FEEDBACK_TEXT
,
},
'options_selected'
:
{
"secret"
:
"yes"
,
u"ⓢⓐⓕⓔ"
:
"yes"
,
"giveup"
:
"eager"
,
"singing"
:
"no"
,
},
}
@ddt
class
TestStaffOverwrite
(
CacheResetTest
):
"""
...
...
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