2023-07-20 17:38:33 +00:00
|
|
|
'''
|
|
|
|
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-20 17:38:33 +00:00
|
|
|
|
|
|
|
'''
|
2023-07-18 00:02:52 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
from piker import config
|
|
|
|
|
|
|
|
|
2023-07-20 17:38:33 +00:00
|
|
|
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'],
|
|
|
|
)
|