mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
update expectancy test
This commit is contained in:
parent
787e94924d
commit
0eddc6b7ad
|
@ -345,7 +345,7 @@ def test_calculate_expectancy(testdatadir):
|
|||
|
||||
expectancy, expectancy_ratio = calculate_expectancy(DataFrame())
|
||||
assert expectancy == 0.0
|
||||
assert expectancy_ratio == float('inf')
|
||||
assert expectancy_ratio == 100
|
||||
|
||||
expectancy, expectancy_ratio = calculate_expectancy(bt_data)
|
||||
assert isinstance(expectancy, float)
|
||||
|
|
Loading…
Reference in New Issue
Block a user