diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 13:47:23 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 13:47:23 +0200 |
| commit | 2bcceb3fe037355dbdfdc46ffbd036c7f719a7bf (patch) | |
| tree | a95bc434d4d6cc26e3539de31bc7f1e335ae6a1c /client/test.py | |
| parent | 4c62c3c39d9c050c98b18c5d88c736fbb2554992 (diff) | |
| parent | 63f4a7c006d54c68a534f0910ed1cb601ed32edb (diff) | |
| download | jasper-client-2bcceb3fe037355dbdfdc46ffbd036c7f719a7bf.tar.gz jasper-client-2bcceb3fe037355dbdfdc46ffbd036c7f719a7bf.zip | |
Merge pull request #201 from Holzhaus/add-more-logging
Add more logging
Diffstat (limited to 'client/test.py')
| -rw-r--r-- | client/test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/test.py b/client/test.py index 23dd619..501fe6f 100644 --- a/client/test.py +++ b/client/test.py @@ -3,6 +3,7 @@ import os import sys import unittest +import logging import argparse from mock import patch, Mock from urllib2 import URLError, urlopen @@ -237,8 +238,15 @@ if __name__ == '__main__': description='Test suite for the Jasper client code.') parser.add_argument('--light', action='store_true', help='runs a subset of the tests (only requires Python dependencies)') + parser.add_argument('--debug', action='store_true', + help='show debug messages') args = parser.parse_args() + logging.basicConfig() + logger = logging.getLogger() + if args.debug: + logger.setLevel(logging.DEBUG) + # Change CWD to jasperpath.LIB_PATH os.chdir(jasperpath.LIB_PATH) |
