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
60b3f0d7
Commit
60b3f0d7
authored
May 08, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #321 from edx/will/move-test-data
Move test data files into test/data directories for consistency
parents
c4debe1e
c292fa6a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
apps/openassessment/assessment/test/data/valid_assessments.json
+0
-0
apps/openassessment/assessment/test/test_peer.py
+2
-2
apps/submissions/tests/data/bad_student_items.json
+0
-0
apps/submissions/tests/data/valid_student_items.json
+0
-0
apps/submissions/tests/test_api.py
+2
-2
No files found.
apps/openassessment/assessment/test/valid_assessments.json
→
apps/openassessment/assessment/test/
data/
valid_assessments.json
View file @
60b3f0d7
File moved
apps/openassessment/assessment/test/test_peer.py
View file @
60b3f0d7
...
...
@@ -257,7 +257,7 @@ class TestPeerApi(CacheResetTest):
for
part
in
AssessmentPart
.
objects
.
all
():
self
.
assertEqual
(
len
(
part
.
feedback
),
Assessment
.
MAXSIZE
)
@file_data
(
'valid_assessments.json'
)
@file_data
(
'
data/
valid_assessments.json'
)
def
test_get_assessments
(
self
,
assessment_dict
):
self
.
_create_student_and_submission
(
"Tim"
,
"Tim's answer"
)
bob_sub
,
bob
=
self
.
_create_student_and_submission
(
"Bob"
,
"Bob's answer"
)
...
...
@@ -274,7 +274,7 @@ class TestPeerApi(CacheResetTest):
assessments
=
peer_api
.
get_assessments
(
sub
[
"uuid"
],
scored_only
=
False
)
self
.
assertEqual
(
1
,
len
(
assessments
))
@file_data
(
'valid_assessments.json'
)
@file_data
(
'
data/
valid_assessments.json'
)
def
test_get_assessments_with_date
(
self
,
assessment_dict
):
self
.
_create_student_and_submission
(
"Tim"
,
"Tim's answer"
)
bob_sub
,
bob
=
self
.
_create_student_and_submission
(
"Bob"
,
"Bob's answer"
)
...
...
apps/submissions/tests/
test_
bad_student_items.json
→
apps/submissions/tests/
data/
bad_student_items.json
View file @
60b3f0d7
File moved
apps/submissions/tests/
test_
valid_student_items.json
→
apps/submissions/tests/
data/
valid_student_items.json
View file @
60b3f0d7
File moved
apps/submissions/tests/test_api.py
View file @
60b3f0d7
...
...
@@ -114,7 +114,7 @@ class TestSubmissionsApi(TestCase):
self
.
_assert_submission
(
submissions
[
0
],
ANSWER_TWO
,
student_item
.
pk
,
1
)
@file_data
(
'
test_
valid_student_items.json'
)
@file_data
(
'
data/
valid_student_items.json'
)
def
test_various_student_items
(
self
,
valid_student_item
):
api
.
create_submission
(
valid_student_item
,
ANSWER_ONE
)
student_item
=
self
.
_get_student_item
(
valid_student_item
)
...
...
@@ -141,7 +141,7 @@ class TestSubmissionsApi(TestCase):
self
.
_assert_submission
(
submissions
[
0
],
ANSWER_ONE
,
student_item
.
pk
,
2
)
@raises
(
api
.
SubmissionRequestError
)
@file_data
(
'
test_
bad_student_items.json'
)
@file_data
(
'
data/
bad_student_items.json'
)
def
test_error_checking
(
self
,
bad_student_item
):
api
.
create_submission
(
bad_student_item
,
-
100
)
...
...
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