Commit a4ce7bb0 by Ben Patterson

Merge pull request #704 from edx/benp/quiet-down-tests

Ignore warnings bubbling up in tests
parents 7c571673 a3788e97
...@@ -12,6 +12,10 @@ if __name__ == "__main__": ...@@ -12,6 +12,10 @@ if __name__ == "__main__":
# Django asks us if we want to delete the database. # Django asks us if we want to delete the database.
# We do. # We do.
if 'test' in sys.argv[0:3]: if 'test' in sys.argv[0:3]:
# Catch warnings in tests and redirect them to be handled by the test runner. Otherwise build results are too
# noisy to be of much use.
import logging
logging.captureWarnings(True)
sys.argv.append('--noinput') sys.argv.append('--noinput')
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
cd `dirname $BASH_SOURCE` && cd .. cd `dirname $BASH_SOURCE` && cd ..
echo "Installing Python requirements..." echo "Installing Python requirements..."
pip install -q -r requirements/base.txt pip install -q -r requirements/base.txt --exists-action w
echo "Installing the OpenAssessment XBlock..." echo "Installing the OpenAssessment XBlock..."
cat <<EOF | python - cat <<EOF | python -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment