Added TODOs to test files

This commit is contained in:
Sam Germain
2021-08-08 23:13:35 -06:00
parent 53a6ce881c
commit 0733d69cda
7 changed files with 36 additions and 8 deletions

View File

@@ -109,6 +109,8 @@ def test_init_ccxt_kwargs(default_conf, mocker, caplog):
assert log_has("Applying additional ccxt config: {'TestKWARG': 11, 'TestKWARG44': 11}", caplog)
assert log_has(asynclogmsg, caplog)
# TODO-lev: Test with options
def test_destroy(default_conf, mocker, caplog):
caplog.set_level(logging.DEBUG)
@@ -300,6 +302,7 @@ def test_price_get_one_pip(default_conf, mocker, price, precision_mode, precisio
def test_get_min_pair_stake_amount(mocker, default_conf) -> None:
# TODO-lev: Test with leverage
exchange = get_patched_exchange(mocker, default_conf, id="binance")
stoploss = -0.05
markets = {'ETH/BTC': {'symbol': 'ETH/BTC'}}
@@ -418,6 +421,7 @@ def test_get_min_pair_stake_amount(mocker, default_conf) -> None:
def test_get_min_pair_stake_amount_real_data(mocker, default_conf) -> None:
# TODO-lev: Test with leverage
exchange = get_patched_exchange(mocker, default_conf, id="binance")
stoploss = -0.05
markets = {'ETH/BTC': {'symbol': 'ETH/BTC'}}
@@ -438,6 +442,11 @@ def test_get_min_pair_stake_amount_real_data(mocker, default_conf) -> None:
)
def apply_leverage_to_stake_amount():
# TODO-lev
return
def test_set_sandbox(default_conf, mocker):
"""
Test working scenario
@@ -2882,3 +2891,18 @@ def test_calculate_fee_rate(mocker, default_conf, order, expected) -> None:
])
def test_calculate_backoff(retrycount, max_retries, expected):
assert calculate_backoff(retrycount, max_retries) == expected
def test_get_max_leverage():
# TODO-lev
return
def test_get_interest_rate():
# TODO-lev
return
def test_set_leverage():
# TODO-lev
return

View File

@@ -13,6 +13,8 @@ from .test_exchange import ccxt_exceptionhandlers
STOPLOSS_ORDERTYPE = 'stop'
# TODO-lev: All these stoploss tests with shorts
def test_stoploss_order_ftx(default_conf, mocker):
api_mock = MagicMock()

View File

@@ -164,6 +164,8 @@ def test_get_balances_prod(default_conf, mocker):
ccxt_exceptionhandlers(mocker, default_conf, api_mock, "kraken",
"get_balances", "fetch_balance")
# TODO-lev: All these stoploss tests with shorts
@pytest.mark.parametrize('ordertype', ['market', 'limit'])
def test_stoploss_order_kraken(default_conf, mocker, ordertype):