Added TODOs to test files

This commit is contained in:
Sam Germain
2021-08-08 23:13:35 -06:00
parent add7e74632
commit 455bcf5389
7 changed files with 36 additions and 8 deletions

View File

@@ -116,6 +116,8 @@ def test_init_ccxt_kwargs(default_conf, mocker, caplog):
assert ex._api.headers == {'hello': 'world'}
Exchange._headers = {}
# TODO-lev: Test with options
def test_destroy(default_conf, mocker, caplog):
caplog.set_level(logging.DEBUG)
@@ -307,6 +309,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'}}
@@ -425,6 +428,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'}}
@@ -445,6 +449,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
@@ -2933,3 +2942,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):