Fix typos discovered by codespell

This commit is contained in:
Christian Clauss
2024-04-18 22:51:25 +02:00
parent 298f9b225d
commit 99b4767bf4
59 changed files with 93 additions and 93 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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