set all to eth for multi test
This commit is contained in:
parent
8cfb6ddd51
commit
30cc69c880
@ -3594,13 +3594,13 @@ def test_get_real_amount(
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'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', [
|
||||||
(None, None, None, 0.001, 0.001, 7.992),
|
(None, None, 0.001, 0.001, 7.992),
|
||||||
("ETH", 0.02, 'BNB', 0.0005, 0.001518575, 7.996),
|
(0.02, 'BNB', 0.0005, 0.001518575, 7.996),
|
||||||
])
|
])
|
||||||
def test_get_real_amount_multi(
|
def test_get_real_amount_multi(
|
||||||
default_conf, trades_for_order2, buy_order_fee, caplog, fee, mocker, markets,
|
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)
|
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)
|
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))
|
amount = float(sum(x['amount'] for x in trades_for_order))
|
||||||
if stake_currency:
|
default_conf['stake_currency'] = "ETH"
|
||||||
default_conf['stake_currency'] = stake_currency
|
|
||||||
|
|
||||||
trade = Trade(
|
trade = Trade(
|
||||||
pair='LTC/ETH',
|
pair='LTC/ETH',
|
||||||
|
Loading…
Reference in New Issue
Block a user