From 1fd033d3517d52a73e753d974c33c7e5045feb03 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 25 Feb 2019 22:12:33 -0500 Subject: [PATCH] Token should always be from a practice account --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index fbb33eec..956b55e1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -45,12 +45,12 @@ def travis(): def write_with_token(token): conf, path = config.load(cache_dir) - conf.setdefault('questrade', {}).update({'refresh_token': token}) + conf.setdefault('questrade', {}).update( + {'refresh_token': token, + 'is_practice': 'True'} + ) config.write(conf, path) - # if not os.path.isdir(cache_dir): - # write_with_token(refresh_token) - async def ensure_config(): # try to refresh current token using cached brokers config # if it fails fail try using the refresh token provided by the