changed the function name and added a doc string explaining
parent
390faeef46
commit
5fd0e5020f
|
@ -180,8 +180,8 @@ def tmpconfdir(
|
||||||
# sessions by default:
|
# sessions by default:
|
||||||
# https://docs.pytest.org/en/6.2.x/tmpdir.html#the-default-base-temporary-directory
|
# https://docs.pytest.org/en/6.2.x/tmpdir.html#the-default-base-temporary-directory
|
||||||
# BUT, if we wanted to always wipe conf dir and all contained files,
|
# BUT, if we wanted to always wipe conf dir and all contained files,
|
||||||
from shutil import rmtree
|
# from shutil import rmtree
|
||||||
rmtree(str(tmp_path))
|
# rmtree(str(tmp_path))
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
|
'''
|
||||||
|
testing the creation of brokers.toml if it doesn't exist,
|
||||||
|
issue was found when trying to run piker chart on windows.
|
||||||
|
|
||||||
|
'''
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from piker import config
|
from piker import config
|
||||||
|
|
||||||
|
|
||||||
def test_root_conf_networking_section():
|
def test_brokers_created_from_template_on_load_accounts():
|
||||||
# load account names from ``brokers.toml``
|
# load account names from ``brokers.toml``
|
||||||
accounts_def = config.load_accounts(
|
accounts_def = config.load_accounts(
|
||||||
providers=['binance'],
|
providers=['binance'],
|
||||||
|
|
Loading…
Reference in New Issue