Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api-client
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
OpenEdx
edx-analytics-data-api-client
Commits
6d21985d
Commit
6d21985d
authored
Jul 11, 2014
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4 from edx/activity_type_fix
Fixed typo and added tests
parents
7cc11934
835dd1ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
analyticsclient/activity_type.py
+1
-1
analyticsclient/tests/test_helpers.py
+19
-0
No files found.
analyticsclient/activity_type.py
View file @
6d21985d
...
...
@@ -5,4 +5,4 @@ Course activity types.
ANY
=
'any'
ATTEMPTED_PROBLEM
=
'attempted_problem'
PLAYED_VIDEO
=
'played_video'
POSTED_FORUM
=
'posted_form'
POSTED_FORUM
=
'posted_for
u
m'
analyticsclient/tests/test_helpers.py
0 → 100644
View file @
6d21985d
from
unittest
import
TestCase
from
analyticsclient
import
activity_type
,
demographic
class
HelperTests
(
TestCase
):
"""
Basic checks for typos.
"""
def
test_activity_type
(
self
):
self
.
assertEqual
(
'any'
,
activity_type
.
ANY
)
self
.
assertEqual
(
'attempted_problem'
,
activity_type
.
ATTEMPTED_PROBLEM
)
self
.
assertEqual
(
'played_video'
,
activity_type
.
PLAYED_VIDEO
)
self
.
assertEqual
(
'posted_forum'
,
activity_type
.
POSTED_FORUM
)
def
test_demographic
(
self
):
self
.
assertEqual
(
'birth_year'
,
demographic
.
BIRTH_YEAR
)
self
.
assertEqual
(
'education'
,
demographic
.
EDUCATION
)
self
.
assertEqual
(
'gender'
,
demographic
.
GENDER
)
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