Move stoploss_on_exchange_limit_ratio to configuration schema

This commit is contained in:
Matthias
2020-07-15 19:28:40 +02:00
parent 0b36693acc
commit 5cebc9f39d
3 changed files with 8 additions and 29 deletions

View File

@@ -871,6 +871,14 @@ def test_load_config_default_exchange_name(all_conf) -> None:
validate_config_schema(all_conf)
def test_load_config_stoploss_exchange_limit_ratio(all_conf) -> None:
all_conf['order_types']['stoploss_on_exchange_limit_ratio'] = 1.15
with pytest.raises(ValidationError,
match=r"1.15 is greater than the maximum"):
validate_config_schema(all_conf)
@pytest.mark.parametrize("keys", [("exchange", "sandbox", False),
("exchange", "key", ""),
("exchange", "secret", ""),