Fix random test failure when local config is found

This commit is contained in:
Matthias 2022-01-31 20:09:25 +01:00
parent f10ef7f2da
commit de17993705

View File

@ -810,7 +810,9 @@ def test_download_data_trades(mocker, caplog):
"--days", "20", "--days", "20",
"--dl-trades" "--dl-trades"
] ]
start_download_data(get_args(args)) pargs = get_args(args)
pargs['config'] = None
start_download_data(pargs)
assert dl_mock.call_args[1]['timerange'].starttype == "date" assert dl_mock.call_args[1]['timerange'].starttype == "date"
assert dl_mock.call_count == 1 assert dl_mock.call_count == 1
assert convert_mock.call_count == 1 assert convert_mock.call_count == 1