Split config-validation requires

This commit is contained in:
Matthias
2020-01-02 10:38:59 +01:00
parent cac0e37b06
commit 9325880fe5
3 changed files with 28 additions and 14 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)