mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Upadate test for new download-data functionality
This commit is contained in:
parent
aa0f90bb68
commit
2237410154
|
@ -69,13 +69,19 @@ def test_download_data_main_trades(mocker):
|
|||
|
||||
assert dl_mock.call_args[1]["timerange"].starttype == "date"
|
||||
assert dl_mock.call_count == 1
|
||||
assert convert_mock.call_count == 1
|
||||
assert convert_mock.call_count == 0
|
||||
dl_mock.reset_mock()
|
||||
|
||||
config.update(
|
||||
{
|
||||
"download_trades": True,
|
||||
"trading_mode": "futures",
|
||||
"convert_trades": True,
|
||||
}
|
||||
)
|
||||
download_data_main(config)
|
||||
|
||||
assert dl_mock.call_args[1]["timerange"].starttype == "date"
|
||||
assert dl_mock.call_count == 1
|
||||
assert convert_mock.call_count == 1
|
||||
|
||||
|
||||
def test_download_data_main_data_invalid(mocker):
|
||||
|
|
Loading…
Reference in New Issue
Block a user