test: fix a couple tsts ...
This commit is contained in:
@@ -3332,7 +3332,7 @@ def test_api_backtest_wallets(botclient, tmp_path: Path):
|
||||
"2018-01-01T00:05:00Z",
|
||||
],
|
||||
"currency": ["ETH", "BTC", "ETH", "BTC"],
|
||||
"price": [2000, 60_000, 2001, 60_001],
|
||||
"rate": [2000, 60_000, 2001, 60_001],
|
||||
"balance": [0.5, 0.25, 0.5, 0.25],
|
||||
}
|
||||
)
|
||||
@@ -3357,7 +3357,7 @@ def test_api_backtest_wallets(botclient, tmp_path: Path):
|
||||
assert_response(rc, 200)
|
||||
result = rc.json()
|
||||
assert result["length"] == 2
|
||||
assert result["columns"] == ["date", "__date_ts", "total"]
|
||||
assert result["columns"] == ["date", "__date_ts", "total_quote"]
|
||||
assert result["data"] == [
|
||||
["2018-01-01T00:00:00Z", 1514764800000, 16000.0],
|
||||
["2018-01-01T00:05:00Z", 1514765100000, 16000.75],
|
||||
|
||||
@@ -633,7 +633,7 @@ def test_record_wallet_state_stores_wallet_history(mocker, default_conf_usdt):
|
||||
mocker.patch.object(
|
||||
freqtrade.exchange,
|
||||
"get_conversion_rate",
|
||||
side_effect=lambda currency, _: conversion_rates.get(currency, 1.0),
|
||||
side_effect=lambda currency, *args, **kwargs: conversion_rates.get(currency, 1.0),
|
||||
)
|
||||
mocker.patch(
|
||||
"freqtrade.persistence.trade_model.Trade.get_open_trades",
|
||||
|
||||
Reference in New Issue
Block a user