mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
chore: ruff format updates
This commit is contained in:
@@ -120,8 +120,7 @@ def test_ohlcv_fill_up_missing_data(testdatadir, caplog):
|
||||
assert (data.columns == data2.columns).all()
|
||||
|
||||
assert log_has_re(
|
||||
f"Missing data fillup for UNITTEST/BTC, 1m: before: "
|
||||
f"{len(data)} - after: {len(data2)}.*",
|
||||
f"Missing data fillup for UNITTEST/BTC, 1m: before: {len(data)} - after: {len(data2)}.*",
|
||||
caplog,
|
||||
)
|
||||
|
||||
|
||||
@@ -556,9 +556,9 @@ def test_analyze_with_orderflow(
|
||||
assert col in df2.columns, f"Round2: Column {col} not found in df.columns"
|
||||
|
||||
if col not in ("stacked_imbalances_bid", "stacked_imbalances_ask"):
|
||||
assert (
|
||||
df2[col].count() == 5
|
||||
), f"Round2: Column {col} has {df2[col].count()} non-NaN values"
|
||||
assert df2[col].count() == 5, (
|
||||
f"Round2: Column {col} has {df2[col].count()} non-NaN values"
|
||||
)
|
||||
|
||||
lastval_trade2 = df2.at[len(df2) - 1, "trades"]
|
||||
assert isinstance(lastval_trade2, list)
|
||||
|
||||
@@ -64,7 +64,7 @@ def test_load_data_30min_timeframe(caplog, testdatadir) -> None:
|
||||
ld = load_pair_history(pair="UNITTEST/BTC", timeframe="30m", datadir=testdatadir)
|
||||
assert isinstance(ld, DataFrame)
|
||||
assert not log_has(
|
||||
'Download history data for pair: "UNITTEST/BTC", timeframe: 30m ' "and store in None.",
|
||||
'Download history data for pair: "UNITTEST/BTC", timeframe: 30m and store in None.',
|
||||
caplog,
|
||||
)
|
||||
|
||||
@@ -86,7 +86,7 @@ def test_load_data_1min_timeframe(ohlcv_history, mocker, caplog, testdatadir) ->
|
||||
load_data(datadir=testdatadir, timeframe="1m", pairs=["UNITTEST/BTC"])
|
||||
assert file.is_file()
|
||||
assert not log_has(
|
||||
'Download history data for pair: "UNITTEST/BTC", interval: 1m ' "and store in None.", caplog
|
||||
'Download history data for pair: "UNITTEST/BTC", interval: 1m and store in None.', caplog
|
||||
)
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ def test_load_data_mark(ohlcv_history, mocker, caplog, testdatadir) -> None:
|
||||
load_data(datadir=testdatadir, timeframe="1h", pairs=["UNITTEST/BTC"], candle_type="mark")
|
||||
assert file.is_file()
|
||||
assert not log_has(
|
||||
'Download history data for pair: "UNITTEST/USDT:USDT", interval: 1m ' "and store in None.",
|
||||
'Download history data for pair: "UNITTEST/USDT:USDT", interval: 1m and store in None.',
|
||||
caplog,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user