tests adjusted

This commit is contained in:
hroff-1902 2019-06-16 21:37:59 +03:00
parent 813c008af2
commit 195bf5a4cc

View File

@ -1,17 +1,18 @@
from freqtrade.utils import setup_configuration, start_list_exchanges
from freqtrade.utils import setup_utils_configuration, start_list_exchanges
from freqtrade.tests.conftest import get_args
from freqtrade.state import RunMode
import re
def test_setup_configuration():
def test_setup_utils_configuration():
args = [
'--config', 'config.json.example',
]
config = setup_configuration(get_args(args), RunMode.OTHER)
config = setup_utils_configuration(get_args(args), RunMode.OTHER)
assert "exchange" in config
assert config['exchange']['dry_run'] is True
assert config['exchange']['key'] == ''
assert config['exchange']['secret'] == ''