Add test showing behavior of #10349
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# pragma pylint: disable=missing-docstring, C0103
|
# pragma pylint: disable=missing-docstring, C0103
|
||||||
import logging
|
import logging
|
||||||
|
import math
|
||||||
from datetime import datetime, timedelta, timezone
|
from datetime import datetime, timedelta, timezone
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
@@ -536,6 +537,19 @@ def test_min_roi_reached3(default_conf, fee) -> None:
|
|||||||
ExitType.NONE,
|
ExitType.NONE,
|
||||||
lambda **kwargs: None,
|
lambda **kwargs: None,
|
||||||
),
|
),
|
||||||
|
# Error case - Returning inf.
|
||||||
|
(
|
||||||
|
0.05,
|
||||||
|
0.9,
|
||||||
|
ExitType.NONE,
|
||||||
|
None,
|
||||||
|
False,
|
||||||
|
True,
|
||||||
|
0.09,
|
||||||
|
0.9,
|
||||||
|
ExitType.NONE,
|
||||||
|
lambda **kwargs: math.inf,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_ft_stoploss_reached(
|
def test_ft_stoploss_reached(
|
||||||
|
|||||||
Reference in New Issue
Block a user