Add comment and don't hardcode 4 in test

This commit is contained in:
Matthias 2019-12-31 07:05:21 +01:00
parent 6ebb9017c7
commit 9d518b9d29
1 changed files with 2 additions and 1 deletions

View File

@ -1454,7 +1454,8 @@ def test_enter_positions(mocker, default_conf, caplog) -> None:
n = freqtrade.enter_positions()
assert n == 0
assert log_has('Found no buy signals for whitelisted currencies. Trying again...', caplog)
assert mock_ct.call_count == 4
# create_trade should be called once for every pair in the whitelist.
assert mock_ct.call_count == len(default_conf['exchange']['pair_whitelist'])
def test_enter_positions_exception(mocker, default_conf, caplog) -> None: