Skip to content

Commit 509923c

Browse files
committed
Fix bug in test_utils.py
1 parent a7c50fd commit 509923c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/indicators/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_has_any_higher_then_threshold(self):
4444
self.assertFalse(has_any_higher_then_threshold(df, column="RSI", threshold=80, number_of_data_points=10, strict=False))
4545
self.assertTrue(has_any_higher_then_threshold(df, column="RSI", threshold=70, number_of_data_points=10, strict=True))
4646
self.assertFalse(has_any_higher_then_threshold(df, column="RSI", threshold=80, number_of_data_points=10, strict=True))
47-
47+
4848
df = pd.DataFrame({
4949
"RSI": [70, 71, 100, 73, 20, 75, 15, 77, 78, 79],
5050
"DateTime": pd.date_range("2021-01-01", periods=10, freq="D")
@@ -81,7 +81,7 @@ def test_has_slope_above_threshold(self):
8181
})
8282
self.assertTrue(
8383
has_slope_above_threshold(
84-
df, column="RSI", threshold=-0.3, number_of_data_points=5, window_size=5
84+
df, column="RSI", threshold=-0.4, number_of_data_points=5, window_size=5
8585
)
8686
)
8787
self.assertTrue(

0 commit comments

Comments
 (0)