Fix linelength
This commit is contained in:
parent
c35f9f8d39
commit
f6f75072ba
@ -3935,7 +3935,8 @@ def test_get_sell_rate_exception(default_conf, mocker, caplog):
|
|||||||
# Ticker on one side can be empty in certain circumstances.
|
# Ticker on one side can be empty in certain circumstances.
|
||||||
default_conf['ask_strategy']['price_side'] = 'ask'
|
default_conf['ask_strategy']['price_side'] = 'ask'
|
||||||
pair = "ETH/BTC"
|
pair = "ETH/BTC"
|
||||||
mocker.patch('freqtrade.exchange.Exchange.fetch_ticker', return_value={'ask': None, 'bid': 0.12})
|
mocker.patch('freqtrade.exchange.Exchange.fetch_ticker',
|
||||||
|
return_value={'ask': None, 'bid': 0.12})
|
||||||
ft = get_patched_freqtradebot(mocker, default_conf)
|
ft = get_patched_freqtradebot(mocker, default_conf)
|
||||||
with pytest.raises(PricingError, match=r"Sell-Rate for ETH/BTC was empty."):
|
with pytest.raises(PricingError, match=r"Sell-Rate for ETH/BTC was empty."):
|
||||||
ft.get_sell_rate(pair, True)
|
ft.get_sell_rate(pair, True)
|
||||||
@ -3943,7 +3944,8 @@ def test_get_sell_rate_exception(default_conf, mocker, caplog):
|
|||||||
ft.config['ask_strategy']['price_side'] = 'bid'
|
ft.config['ask_strategy']['price_side'] = 'bid'
|
||||||
assert ft.get_sell_rate(pair, True) == 0.12
|
assert ft.get_sell_rate(pair, True) == 0.12
|
||||||
# Reverse sides
|
# Reverse sides
|
||||||
mocker.patch('freqtrade.exchange.Exchange.fetch_ticker', return_value={'ask': 0.13, 'bid': None})
|
mocker.patch('freqtrade.exchange.Exchange.fetch_ticker',
|
||||||
|
return_value={'ask': 0.13, 'bid': None})
|
||||||
with pytest.raises(PricingError, match=r"Sell-Rate for ETH/BTC was empty."):
|
with pytest.raises(PricingError, match=r"Sell-Rate for ETH/BTC was empty."):
|
||||||
ft.get_sell_rate(pair, True)
|
ft.get_sell_rate(pair, True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user