Skip to content

Commit e792baf

Browse files
committed
test: update test to ensure rel_mean is reasonable
1 parent fe95581 commit e792baf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/data/test_btanalysis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ def test_combined_dataframes_with_rel_mean(testdatadir):
306306
assert df.iloc[0]["count"] == 2
307307
assert df.iloc[-1]["count"] == 2
308308
assert len(df) < len(data["BTC/USDT"])
309+
assert df["rel_mean"].between(-0.5, 0.5).all()
309310

310311

311312
def test_combine_dataframes_with_mean_no_data(testdatadir):

0 commit comments

Comments
 (0)