Skip to content

Commit 2e29d35

Browse files
committed
test: empty pairlist is now handled by config schema
1 parent 530300a commit 2e29d35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/plugins/test_pairlist.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,12 @@ def test_pairlistmanager_no_pairlist(mocker, whitelist_conf):
18831883

18841884
whitelist_conf["pairlists"] = []
18851885

1886-
with pytest.raises(OperationalException, match=r"No Pairlist Handlers defined"):
1886+
with pytest.raises(OperationalException, match=r"\[\] should be non-empty"):
1887+
get_patched_freqtradebot(mocker, whitelist_conf)
1888+
1889+
del whitelist_conf["pairlists"]
1890+
1891+
with pytest.raises(OperationalException, match=r"'pairlists' is a required property"):
18871892
get_patched_freqtradebot(mocker, whitelist_conf)
18881893

18891894

0 commit comments

Comments
 (0)