update expectancy test

This commit is contained in:
Stefano Ariestasia 2023-07-23 14:27:45 +09:00
parent 787e94924d
commit 0eddc6b7ad

View File

@ -345,7 +345,7 @@ def test_calculate_expectancy(testdatadir):
expectancy, expectancy_ratio = calculate_expectancy(DataFrame()) expectancy, expectancy_ratio = calculate_expectancy(DataFrame())
assert expectancy == 0.0 assert expectancy == 0.0
assert expectancy_ratio == float('inf') assert expectancy_ratio == 100
expectancy, expectancy_ratio = calculate_expectancy(bt_data) expectancy, expectancy_ratio = calculate_expectancy(bt_data)
assert isinstance(expectancy, float) assert isinstance(expectancy, float)