Merge pull request #2732 from freqtrade/config_validation_split

Config validation split
This commit is contained in:
hroff-1902
2020-01-03 23:41:44 +03:00
committed by GitHub
4 changed files with 35 additions and 15 deletions

View File

@@ -49,6 +49,7 @@ def test_load_config_missing_attributes(default_conf) -> None:
conf = deepcopy(default_conf)
conf.pop('stake_currency')
conf['runmode'] = RunMode.DRY_RUN
with pytest.raises(ValidationError, match=r".*'stake_currency' is a required property.*"):
validate_config_schema(conf)