mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
chore: some minor cleanups
This commit is contained in:
@@ -358,7 +358,7 @@ class DataProvider:
|
|||||||
# TODO: does this message make sense? might be pointless as funding fees don't
|
# TODO: does this message make sense? might be pointless as funding fees don't
|
||||||
# have a timeframe
|
# have a timeframe
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"{pair}, {timeframe} requested - funding rate timeframe not matching {ff_tf}. "
|
f"{pair}, {timeframe} requested - funding rate timeframe not matching {ff_tf}."
|
||||||
)
|
)
|
||||||
return ff_tf
|
return ff_tf
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ def test_migrate_funding_rate_timeframe(default_conf_usdt, tmp_path, testdatadir
|
|||||||
copytree(testdatadir / "futures", tmp_path / "futures")
|
copytree(testdatadir / "futures", tmp_path / "futures")
|
||||||
file_30m = tmp_path / "futures" / "XRP_USDT_USDT-30m-funding_rate.feather"
|
file_30m = tmp_path / "futures" / "XRP_USDT_USDT-30m-funding_rate.feather"
|
||||||
file_1h_fr = tmp_path / "futures" / "XRP_USDT_USDT-1h-funding_rate.feather"
|
file_1h_fr = tmp_path / "futures" / "XRP_USDT_USDT-1h-funding_rate.feather"
|
||||||
file_1h_fr = tmp_path / "futures" / "XRP_USDT_USDT-1h-funding_rate.feather"
|
|
||||||
file_1h = tmp_path / "futures" / "XRP_USDT_USDT-1h-futures.feather"
|
file_1h = tmp_path / "futures" / "XRP_USDT_USDT-1h-futures.feather"
|
||||||
file_1h_fr.rename(file_30m)
|
file_1h_fr.rename(file_30m)
|
||||||
assert file_1h.exists()
|
assert file_1h.exists()
|
||||||
|
|||||||
Reference in New Issue
Block a user