diff --git a/tests/conftest.py b/tests/conftest.py index ff31a9965..2c6297d57 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -31,14 +31,6 @@ from tests.conftest_trades_usdt import (mock_trade_usdt_1, mock_trade_usdt_2, mo mock_trade_usdt_4, mock_trade_usdt_5, mock_trade_usdt_6) -def enter_side(is_short: bool): - return "sell" if is_short else "buy" - - -def exit_side(is_short: bool): - return "buy" if is_short else "sell" - - logging.getLogger('').setLevel(logging.INFO) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index f381caba4..319e25e71 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -23,17 +23,9 @@ from freqtrade.worker import Worker from tests.conftest import (create_mock_trades, get_patched_freqtradebot, get_patched_worker, log_has, log_has_re, patch_edge, patch_exchange, patch_get_signal, patch_wallet, patch_whitelist) -from tests.conftest_trades import (MOCK_TRADE_COUNT, mock_order_1, mock_order_2, mock_order_2_sell, - mock_order_3, mock_order_3_sell, mock_order_4, - mock_order_5_stoploss, mock_order_6_sell) - - -def enter_side(is_short: bool): - return "sell" if is_short else "buy" - - -def exit_side(is_short: bool): - return "buy" if is_short else "sell" +from tests.conftest_trades import (MOCK_TRADE_COUNT, enter_side, exit_side, mock_order_1, + mock_order_2, mock_order_2_sell, mock_order_3, mock_order_3_sell, + mock_order_4, mock_order_5_stoploss, mock_order_6_sell) def patch_RPCManager(mocker) -> MagicMock: