mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
test: update test to ensure rel_mean is reasonable
This commit is contained in:
@@ -306,6 +306,7 @@ def test_combined_dataframes_with_rel_mean(testdatadir):
|
|||||||
assert df.iloc[0]["count"] == 2
|
assert df.iloc[0]["count"] == 2
|
||||||
assert df.iloc[-1]["count"] == 2
|
assert df.iloc[-1]["count"] == 2
|
||||||
assert len(df) < len(data["BTC/USDT"])
|
assert len(df) < len(data["BTC/USDT"])
|
||||||
|
assert df["rel_mean"].between(-0.5, 0.5).all()
|
||||||
|
|
||||||
|
|
||||||
def test_combine_dataframes_with_mean_no_data(testdatadir):
|
def test_combine_dataframes_with_mean_no_data(testdatadir):
|
||||||
|
|||||||
Reference in New Issue
Block a user