Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-dashboard
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-analytics-dashboard
Commits
f5073fd5
Commit
f5073fd5
authored
Sep 23, 2015
by
Dennis Jen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated answer distribution key from "count" to "last_response_count"
parent
9f1c002b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
acceptance_tests/test_course_performance.py
+2
-2
No files found.
acceptance_tests/test_course_performance.py
View file @
f5073fd5
...
@@ -296,7 +296,7 @@ class CoursePerformanceAnswerDistributionMixin(CoursePerformancePageTestsMixin):
...
@@ -296,7 +296,7 @@ class CoursePerformanceAnswerDistributionMixin(CoursePerformancePageTestsMixin):
self
.
module
=
self
.
analytics_api_client
.
modules
(
self
.
page
.
course_id
,
self
.
page
.
problem_id
)
self
.
module
=
self
.
analytics_api_client
.
modules
(
self
.
page
.
course_id
,
self
.
page
.
problem_id
)
api_response
=
self
.
module
.
answer_distribution
()
api_response
=
self
.
module
.
answer_distribution
()
data
=
[
i
for
i
in
api_response
if
i
[
'part_id'
]
==
self
.
page
.
part_id
]
data
=
[
i
for
i
in
api_response
if
i
[
'part_id'
]
==
self
.
page
.
part_id
]
self
.
answer_distribution
=
sorted
(
data
,
key
=
lambda
a
:
a
[
'count'
],
reverse
=
True
)
self
.
answer_distribution
=
sorted
(
data
,
key
=
lambda
a
:
a
[
'
last_response_
count'
],
reverse
=
True
)
def
get_page
(
self
):
def
get_page
(
self
):
raise
NotImplementedError
raise
NotImplementedError
...
@@ -357,7 +357,7 @@ class CoursePerformanceAnswerDistributionMixin(CoursePerformancePageTestsMixin):
...
@@ -357,7 +357,7 @@ class CoursePerformanceAnswerDistributionMixin(CoursePerformancePageTestsMixin):
if
answer
[
'correct'
]:
if
answer
[
'correct'
]:
correct
=
u'Correct'
correct
=
u'Correct'
expected
.
append
(
correct
)
expected
.
append
(
correct
)
expected
.
append
(
self
.
format_number
(
answer
[
'count'
]))
expected
.
append
(
self
.
format_number
(
answer
[
'
last_response_
count'
]))
self
.
assertListEqual
(
actual
,
expected
)
self
.
assertListEqual
(
actual
,
expected
)
self
.
assertIn
(
'text-right'
,
columns
[
2
]
.
get_attribute
(
'class'
))
self
.
assertIn
(
'text-right'
,
columns
[
2
]
.
get_attribute
(
'class'
))
...
...
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