Fix typos discovered by codespell
This commit is contained in:
@@ -81,7 +81,7 @@ def test_returns_latest_signal(ohlcv_history):
|
||||
assert _STRATEGY.get_entry_signal('ETH/BTC', '5m', mocked_history) == (None, None)
|
||||
|
||||
_STRATEGY.config['trading_mode'] = 'futures'
|
||||
# Short signal get's ignored as can_short is not set.
|
||||
# Short signal gets ignored as can_short is not set.
|
||||
assert _STRATEGY.get_entry_signal('ETH/BTC', '5m', mocked_history) == (None, None)
|
||||
|
||||
_STRATEGY.can_short = True
|
||||
|
||||
@@ -253,7 +253,7 @@ def test_stoploss_from_open(side, profitrange):
|
||||
|
||||
assert stoploss >= 0
|
||||
# Technically the formula can yield values greater than 1 for shorts
|
||||
# eventhough it doesn't make sense because the position would be liquidated
|
||||
# even though it doesn't make sense because the position would be liquidated
|
||||
if side == 'long':
|
||||
assert stoploss <= 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user