Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
problem-builder
Commits
f13d337a
Commit
f13d337a
authored
May 07, 2015
by
E. Kolpakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppressed noisy loggers
parent
4d76960a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
run_tests.py
+11
-0
No files found.
run_tests.py
View file @
f13d337a
...
@@ -10,6 +10,14 @@ because the workbench SDK's settings file is not inside any python module.
...
@@ -10,6 +10,14 @@ because the workbench SDK's settings file is not inside any python module.
import
os
import
os
import
sys
import
sys
import
logging
logging_level_overrides
=
{
'workbench.views'
:
logging
.
ERROR
,
'django.request'
:
logging
.
ERROR
,
'workbench.runtime'
:
logging
.
ERROR
,
}
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
# Use the workbench settings file:
# Use the workbench settings file:
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"workbench.settings"
)
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"workbench.settings"
)
...
@@ -19,6 +27,9 @@ if __name__ == "__main__":
...
@@ -19,6 +27,9 @@ if __name__ == "__main__":
from
django.conf
import
settings
from
django.conf
import
settings
settings
.
INSTALLED_APPS
+=
(
"problem_builder"
,
)
settings
.
INSTALLED_APPS
+=
(
"problem_builder"
,
)
for
noisy_logger
,
log_level
in
logging_level_overrides
.
iteritems
():
logging
.
getLogger
(
noisy_logger
)
.
setLevel
(
log_level
)
from
django.core.management
import
execute_from_command_line
from
django.core.management
import
execute_from_command_line
args
=
sys
.
argv
[
1
:]
args
=
sys
.
argv
[
1
:]
paths
=
[
arg
for
arg
in
args
if
arg
[
0
]
!=
'-'
]
paths
=
[
arg
for
arg
in
args
if
arg
[
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