piker/tests/test_configs.py

15 lines
377 B
Python
Raw Normal View History

'''
testing the creation of brokers.toml if it doesn't exist,
2023-07-20 17:45:50 +00:00
FileNotFoundError was found when trying to run piker chart on windows.
'''
2023-07-18 00:02:52 +00:00
from pathlib import Path
from piker import config
def test_brokers_created_from_template_on_load_accounts():
2023-07-18 00:02:52 +00:00
# load account names from ``brokers.toml``
accounts_def = config.load_accounts(
2023-07-19 19:09:32 +00:00
providers=['binance'],
)