mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
fix test
This commit is contained in:
parent
3dd33cde00
commit
3552fa431b
|
@ -356,7 +356,7 @@ def test_calculate_expectancy_ratio(testdatadir):
|
|||
bt_data = load_backtest_data(filename)
|
||||
|
||||
expectancy_ratio = calculate_expectancy_ratio(DataFrame())
|
||||
assert expectancy_ratio == 0.0
|
||||
assert expectancy_ratio == float('inf')
|
||||
|
||||
expectancy_ratio = calculate_expectancy_ratio(bt_data)
|
||||
assert isinstance(expectancy_ratio, float)
|
||||
|
|
Loading…
Reference in New Issue
Block a user