From cf30dbe89d906699a37c0f2df82ed5df29b1522e Mon Sep 17 00:00:00 2001 From: Alex Golec Date: Tue, 21 Sep 2021 08:04:33 -0400 Subject: [PATCH] Adds verbosity to functional tests --- scripts/functional_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/functional_tests.py b/scripts/functional_tests.py index 9b4e9c3..4f2b422 100644 --- a/scripts/functional_tests.py +++ b/scripts/functional_tests.py @@ -110,8 +110,12 @@ async def read_stream(): parser.add_argument('--account_id', type=int, required=True) parser.add_argument('--api_key', type=str, required=True) parser.add_argument('--allow_balances', action='store_true', default=False) + parser.add_argument('--verbose', action='store_true', default=False) args = parser.parse_args() + if args.verbose: + logging.getLogger('').setLevel(logging.DEBUG) + FunctionalTests.set_client( tda.auth.client_from_token_file(args.token, args.api_key))