Skip to content

Commit 3bf289f

Browse files
Merge pull request #25 from advanced-computing/update-test-avg-func
Update test_avg_func tests
2 parents 4c4533a + 347fd6f commit 3bf289f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_avg_func.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def test_single_overlapping_day():
2727
result = average_probabilities(poly, kalshi)
2828
assert result is not None
2929
assert len(result) == 1
30-
assert result["Average (%)"].iloc[0] == 50.0
30+
EXPECTED_AVG = 50.0
31+
assert result["Average (%)"].iloc[0] == EXPECTED_AVG
3132

3233
# Test 2: when polymarket has no data --> function returns empty result, not crash.
3334
def test_empty_poly():

0 commit comments

Comments
 (0)