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
1 changed files with 3 additions and 1 deletions

View File

@ -810,7 +810,9 @@ def test_download_data_trades(mocker, caplog):
"--days", "20",
"--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_count == 1
assert convert_mock.call_count == 1