From 6afad6c99fdb48d21929d6cc5c97fb47c6a9e430 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 4 Feb 2022 07:20:27 +0100 Subject: [PATCH] Small change to todo comment --- tests/exchange/test_exchange.py | 5 ++--- tests/test_freqtradebot.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index ad24efc35..7be9a2207 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -647,7 +647,7 @@ def test_reload_markets_exception(default_conf, mocker, caplog): assert log_has_re(r"Could not reload markets.*", caplog) -@ pytest.mark.parametrize("stake_currency", ['ETH', 'BTC', 'USDT']) +@pytest.mark.parametrize("stake_currency", ['ETH', 'BTC', 'USDT']) def test_validate_stakecurrency(default_conf, stake_currency, mocker, caplog): default_conf['stake_currency'] = stake_currency api_mock = MagicMock() @@ -1271,8 +1271,7 @@ def test_buy_prod(default_conf, mocker, exchange_name): side="buy", amount=1, rate=200, - time_in_force=time_in_force - ) + time_in_force=time_in_force) assert api_mock.create_order.call_args[0][0] == 'ETH/BTC' assert api_mock.create_order.call_args[0][1] == order_type assert api_mock.create_order.call_args[0][2] == 'buy' diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index 9053f9cc8..d26c1e65a 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -743,7 +743,7 @@ def test_execute_entry(mocker, default_conf_usdt, fee, limit_order, (open_rate - (wallet_balance / position)) / (1 - (mm_ratio + taker_fee_rate)) (10 - (2 / 1)) / (1 - (0.01 + 0.0006)) = 8.085708510208207 """ - # TODO: Parametrize this test + # TODO: Split this test into multiple tests to improve readability open_order = limit_order_open[enter_side(is_short)] order = limit_order[enter_side(is_short)] default_conf_usdt['trading_mode'] = trading_mode