move create_datadir() to separate file

This commit is contained in:
hroff-1902
2019-07-12 03:26:27 +03:00
parent 7e103e34f8
commit bbfbd87a9f
6 changed files with 32 additions and 25 deletions

View File

@@ -205,8 +205,8 @@ def test_setup_configuration_without_arguments(mocker, default_conf, caplog) ->
def test_setup_bt_configuration_with_arguments(mocker, default_conf, caplog) -> None:
patched_configuration_open(mocker, default_conf)
mocker.patch(
'freqtrade.configuration.configuration.Configuration._create_datadir',
lambda s, c, x: x
'freqtrade.configuration.configuration.create_datadir',
lambda c, x: x
)
args = [

View File

@@ -46,8 +46,8 @@ def test_setup_configuration_without_arguments(mocker, default_conf, caplog) ->
def test_setup_edge_configuration_with_arguments(mocker, edge_conf, caplog) -> None:
patched_configuration_open(mocker, edge_conf)
mocker.patch(
'freqtrade.configuration.configuration.Configuration._create_datadir',
lambda s, c, x: x
'freqtrade.configuration.configuration.create_datadir',
lambda c, x: x
)
args = [

View File

@@ -83,8 +83,8 @@ def test_setup_hyperopt_configuration_without_arguments(mocker, default_conf, ca
def test_setup_hyperopt_configuration_with_arguments(mocker, default_conf, caplog) -> None:
patched_configuration_open(mocker, default_conf)
mocker.patch(
'freqtrade.configuration.configuration.Configuration._create_datadir',
lambda s, c, x: x
'freqtrade.configuration.configuration.create_datadir',
lambda c, x: x
)
args = [