Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
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-data-api
Commits
8b3da8f8
Commit
8b3da8f8
authored
May 11, 2016
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #116 from edx/dan-f/upgrade-to-django-1.8
Upgrade to Django 1.8.13
parents
dd3d54de
e712f416
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
2 deletions
+27
-2
analytics_data_api/v0/tests/views/test_problems.py
+3
-0
analyticsdataserver/settings/base.py
+19
-0
analyticsdataserver/settings/test.py
+3
-0
requirements/base.txt
+1
-1
requirements/test.txt
+1
-1
No files found.
analytics_data_api/v0/tests/views/test_problems.py
View file @
8b3da8f8
...
...
@@ -21,6 +21,7 @@ class AnswerDistributionTests(TestCaseWithAuthentication):
@classmethod
def
setUpClass
(
cls
):
super
(
AnswerDistributionTests
,
cls
)
.
setUpClass
()
cls
.
course_id
=
"org/num/run"
cls
.
module_id1
=
"i4x://org/num/run/problem/RANDOMNUMBER"
cls
.
module_id2
=
"i4x://org/num/run/problem/OTHERRANDOM"
...
...
@@ -141,6 +142,7 @@ class GradeDistributionTests(TestCaseWithAuthentication):
@classmethod
def
setUpClass
(
cls
):
super
(
GradeDistributionTests
,
cls
)
.
setUpClass
()
cls
.
course_id
=
"org/class/test"
cls
.
module_id
=
"i4x://org/class/test/problem/RANDOM_NUMBER"
cls
.
ad1
=
G
(
...
...
@@ -169,6 +171,7 @@ class SequentialOpenDistributionTests(TestCaseWithAuthentication):
@classmethod
def
setUpClass
(
cls
):
super
(
SequentialOpenDistributionTests
,
cls
)
.
setUpClass
()
cls
.
course_id
=
"org/class/test"
cls
.
module_id
=
"i4x://org/class/test/problem/RANDOM_NUMBER"
cls
.
ad1
=
G
(
...
...
analyticsdataserver/settings/base.py
View file @
8b3da8f8
...
...
@@ -234,6 +234,10 @@ LOGGING = {
'class'
:
'logging.StreamHandler'
,
'stream'
:
stderr
,
},
'null'
:
{
'level'
:
'DEBUG'
,
'class'
:
'logging.NullHandler'
}
},
'loggers'
:
{
'django'
:
{
...
...
@@ -246,6 +250,21 @@ LOGGING = {
'level'
:
'DEBUG'
,
'propagate'
:
True
},
# See https://elasticutils.readthedocs.io/en/latest/debugging.html
# INFO-level logs tell us when nodes fail and are resurrected.
'elasticsearch'
:
{
'handlers'
:
[
'console'
],
'level'
:
'WARNING'
},
# elasticsearch.trace logs are fired for every single request
# with an INFO or DEBUG level. They're noisy and not terribly
# userful for debugging, so we'll just propagate them to the
# 'elasticsearch' log bucket which only accepts 'WARNING'
# level logs.
'elasticsearch.trace'
:
{
'handlers'
:
[
'null'
],
'propagate'
:
False
}
},
}
########## END LOGGING CONFIGURATION
...
...
analyticsdataserver/settings/test.py
View file @
8b3da8f8
...
...
@@ -14,6 +14,9 @@ DATABASES = {
},
}
# Silence elasticsearch during tests
LOGGING
[
'loggers'
][
'elasticsearch'
][
'handlers'
]
=
[
'null'
]
INSTALLED_APPS
+=
(
'django_nose'
,
)
...
...
requirements/base.txt
View file @
8b3da8f8
boto==2.22.1 # MIT
Django==1.
7.5
# BSD License
Django==1.
8.13
# BSD License
django-model-utils==2.2 # BSD
djangorestframework==2.4.4 # BSD
django-rest-swagger==0.2.8 # BSD
...
...
requirements/test.txt
View file @
8b3da8f8
...
...
@@ -4,7 +4,7 @@ coverage==3.7.1
ddt==1.0.1
diff-cover >= 0.2.1
django-dynamic-fixture==1.8.1
django-nose==1.4.
1
django-nose==1.4.
3
mock==1.0.1
nose-exclude==0.2.0
nose-ignore-docstring==0.2
...
...
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