set all to eth for multi test

This commit is contained in:
matt ferrante 2021-09-22 11:28:42 -06:00
parent 8cfb6ddd51
commit 30cc69c880

View File

@ -3594,13 +3594,13 @@ def test_get_real_amount(
@pytest.mark.parametrize(
'stake_currency,fee_cost,fee_currency,fee_reduction_amount,expected_fee,expected_log_amount', [
(None, None, None, 0.001, 0.001, 7.992),
("ETH", 0.02, 'BNB', 0.0005, 0.001518575, 7.996),
'fee_cost, fee_currency, fee_reduction_amount, expected_fee, expected_log_amount', [
(None, None, 0.001, 0.001, 7.992),
(0.02, 'BNB', 0.0005, 0.001518575, 7.996),
])
def test_get_real_amount_multi(
default_conf, trades_for_order2, buy_order_fee, caplog, fee, mocker, markets,
stake_currency, fee_cost, fee_currency, fee_reduction_amount, expected_fee, expected_log_amount,
fee_cost, fee_currency, fee_reduction_amount, expected_fee, expected_log_amount,
):
trades_for_order = deepcopy(trades_for_order2)
@ -3611,8 +3611,7 @@ def test_get_real_amount_multi(
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = float(sum(x['amount'] for x in trades_for_order))
if stake_currency:
default_conf['stake_currency'] = stake_currency
default_conf['stake_currency'] = "ETH"
trade = Trade(
pair='LTC/ETH',