Fix random test failure when local config is found
This commit is contained in:
parent
f10ef7f2da
commit
de17993705
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user