Add test for backtesting _enter_trade

This commit is contained in:
Matthias
2021-02-22 06:54:33 +01:00
parent 60db6ccf45
commit fc256749af
4 changed files with 44 additions and 8 deletions

View File

@@ -301,7 +301,6 @@ def test_calculate_csum(testdatadir):
assert csum_min1 == csum_min + 5
assert csum_max1 == csum_max + 5
with pytest.raises(ValueError, match='Trade dataframe empty.'):
csum_min, csum_max = calculate_csum(DataFrame())