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
c3c3ddb6
Commit
c3c3ddb6
authored
Nov 12, 2015
by
Eric Fischer
Committed by
Andy Armstrong
Nov 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded test code
parent
fdd3a995
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 @
c3c3ddb6
# coding=utf-8
# coding=utf-8
import
datetime
import
pytz
import
copy
import
copy
import
mock
import
mock
from
django.db
import
DatabaseError
,
IntegrityError
from
django.db
import
DatabaseError
from
django.utils
import
timezone
from
ddt
import
ddt
,
file_data
from
ddt
import
ddt
,
file_data
from
nose.tools
import
raises
from
nose.tools
import
raises
from
openassessment.test_utils
import
CacheResetTest
from
openassessment.test_utils
import
CacheResetTest
from
openassessment.assessment.api
import
staff
as
staff_api
from
openassessment.assessment.api
import
staff
as
staff_api
from
openassessment.assessment.api.self
import
create_assessment
as
self_assess
from
openassessment.assessment.api.self
import
create_assessment
as
self_assess
from
openassessment.assessment.models
import
(
from
openassessment.assessment.models
import
Assessment
Assessment
,
AssessmentPart
,
AssessmentFeedback
,
AssessmentFeedbackOption
,
PeerWorkflow
,
PeerWorkflowItem
)
from
openassessment.assessment.errors
import
StaffAssessmentRequestError
,
StaffAssessmentInternalError
from
openassessment.assessment.errors
import
StaffAssessmentRequestError
,
StaffAssessmentInternalError
from
openassessment.workflow
import
api
as
workflow_api
from
openassessment.workflow
import
api
as
workflow_api
from
submissions
import
api
as
sub_api
from
submissions
import
api
as
sub_api
...
@@ -27,8 +21,6 @@ STUDENT_ITEM = dict(
...
@@ -27,8 +21,6 @@ STUDENT_ITEM = dict(
item_type
=
"Peer_Submission"
,
item_type
=
"Peer_Submission"
,
)
)
ANSWER_ONE
=
u"this is my answer!"
# Possible points: 14
# Possible points: 14
RUBRIC_DICT
=
{
RUBRIC_DICT
=
{
"criteria"
:
[
"criteria"
:
[
...
@@ -94,18 +86,6 @@ ASSESSMENT_DICT = {
...
@@ -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
# Answers are against RUBRIC_DICT -- this is worth 14 points
ASSESSMENT_DICT_PASS
=
{
ASSESSMENT_DICT_PASS
=
{
'overall_feedback'
:
u"这是中国"
,
'overall_feedback'
:
u"这是中国"
,
...
@@ -118,27 +98,6 @@ ASSESSMENT_DICT_PASS = {
...
@@ -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
@ddt
class
TestStaffOverwrite
(
CacheResetTest
):
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