Allow fee currency to be empty for futures

This commit is contained in:
Matthias
2022-07-07 07:08:49 +02:00
parent 2499276fca
commit 81f7d77d74
2 changed files with 17 additions and 11 deletions

View File

@@ -3529,8 +3529,10 @@ def test_market_is_active(market, expected_result) -> None:
({'fee': {'currency': 'ETH/BTC', 'cost': None}}, False),
({'fee': {'currency': 'ETH/BTC', 'cost': 0.01}}, True),
])
def test_order_has_fee(order, expected) -> None:
assert Exchange.order_has_fee(order) == expected
def test_order_has_fee(mocker, default_conf, order, expected) -> None:
ex = get_patched_exchange(mocker, default_conf)
assert ex.order_has_fee(order) == expected
@pytest.mark.parametrize("order,expected", [