flake 8 fixes
This commit is contained in:
parent
53fb8b05e7
commit
00939b63f2
@ -664,8 +664,8 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if self.use_custom_entry_price:
|
if self.use_custom_entry_price:
|
||||||
entry_price_value = strategy_safe_wrapper(self.custom_entry_price, default_retval=None
|
entry_price_value = strategy_safe_wrapper(self.custom_entry_price, default_retval=None)(
|
||||||
)(pair=pair,
|
pair=pair,
|
||||||
current_time=current_time,
|
current_time=current_time,
|
||||||
current_rate=current_rate)
|
current_rate=current_rate)
|
||||||
|
|
||||||
|
@ -904,7 +904,8 @@ def test_execute_buy(mocker, default_conf, fee, limit_buy_order, limit_buy_order
|
|||||||
with pytest.raises(PricingError, match="Could not determine buy price."):
|
with pytest.raises(PricingError, match="Could not determine buy price."):
|
||||||
freqtrade.execute_buy(pair, stake_amount)
|
freqtrade.execute_buy(pair, stake_amount)
|
||||||
|
|
||||||
def test_execute_buy_custom_entry_price(mocker, default_conf, fee, limit_buy_order, limit_buy_order_open) -> None:
|
|
||||||
|
def test_execute_buy_custom_entry_price(mocker, default_conf, fee, limit_buy_order_open) -> None:
|
||||||
patch_RPCManager(mocker)
|
patch_RPCManager(mocker)
|
||||||
patch_exchange(mocker)
|
patch_exchange(mocker)
|
||||||
default_conf.update({'use_custom_entry_price': True})
|
default_conf.update({'use_custom_entry_price': True})
|
||||||
|
Loading…
Reference in New Issue
Block a user