1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:14:45 +00:00

clear error on bad config

This commit is contained in:
deadc0de6
2022-08-18 23:35:56 +02:00
parent 8ca2f2e0fb
commit 502d29b952
2 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import os
from dotdrop.cfg_yaml import CfgYaml as Cfg
from dotdrop.options import Options
from dotdrop.linktypes import LinkTypes
from dotdrop.exceptions import YamlException
from tests.helpers import (SubsetTestCase, _fake_args, clean,
create_fake_config, create_yaml_keyval, get_tempdir,
populate_fake_config, yaml_load, yaml_dump)
@@ -129,7 +130,7 @@ profiles:
args['--cfg'] = 'mocked'
args['--verbose'] = True
with self.assertRaises(ValueError):
with self.assertRaises(YamlException):
o = Options(args=args)
print(o.import_link)