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
fa3fafc4
Commit
fa3fafc4
authored
Feb 18, 2015
by
Muzaffar yousaf
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #674 from edx/muzaffar/update-edxsubmission-tnl1466
Updates the edx-submissions version.
parents
fa127b92
5f1832b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
openassessment/xblock/test/test_leaderboard.py
+4
-3
requirements/base.txt
+1
-1
No files found.
openassessment/xblock/test/test_leaderboard.py
View file @
fa3fafc4
...
...
@@ -5,6 +5,7 @@ Tests for leaderboard handlers in Open Assessment XBlock.
import
json
import
mock
from
django.core.cache
import
cache
from
random
import
randint
from
submissions
import
api
as
sub_api
from
.base
import
XBlockHandlerTransactionTestCase
,
scenario
from
django.test.utils
import
override_settings
...
...
@@ -172,10 +173,10 @@ class TestLeaderboardRender(XBlockHandlerTransactionTestCase):
# These aren't displayed by the leaderboard, so we can set them
# to anything without affecting the test.
student_item
=
xblock
.
get_student_item_dict
()
student_item
[
'student_id'
]
=
"student {num}"
.
format
(
num
=
num
)
# adding rand number to the student_id to make it unique.
student_item
[
'student_id'
]
=
"student {num} {num2}"
.
format
(
num
=
num
,
num2
=
randint
(
2
,
1000
))
if
submission_key
is
not
None
:
answer
=
{
submission_key
:
submission
}
answer
=
{
submission_key
:
submission
}
else
:
answer
=
submission
...
...
requirements/base.txt
View file @
fa3fafc4
...
...
@@ -6,7 +6,7 @@
git+https://github.com/edx/XBlock.git@9c634481dfc85a17dcb3351ca232d7098a38e10e#egg=XBlock
# edx-submissions
git+https://github.com/edx/edx-submissions.git@
7d19adcc49045b225aa55441604928905b018b30
#egg=edx-submissions
git+https://github.com/edx/edx-submissions.git@
8fb070d2a3087dd7656d27022e550d12e3b85ba3
#egg=edx-submissions
# Third Party Requirements
boto>=2.32.1,<3.0.0
...
...
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