From e792bafe21a02e8bb865ba14eec06b5318d5d74b Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Dec 2025 21:14:27 +0100 Subject: [PATCH] test: update test to ensure rel_mean is reasonable --- tests/data/test_btanalysis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/data/test_btanalysis.py b/tests/data/test_btanalysis.py index 3b9ff40b7..e5020fea0 100644 --- a/tests/data/test_btanalysis.py +++ b/tests/data/test_btanalysis.py @@ -306,6 +306,7 @@ def test_combined_dataframes_with_rel_mean(testdatadir): assert df.iloc[0]["count"] == 2 assert df.iloc[-1]["count"] == 2 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):