mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 11:01:45 +00:00
fix tests
This commit is contained in:
@@ -148,10 +148,10 @@ class Options(AttrMonitor):
|
||||
|
||||
# args parsing
|
||||
self.args = {}
|
||||
if not args:
|
||||
self.args = docopt(USAGE, version=VERSION)
|
||||
if args:
|
||||
self.args = args.copy()
|
||||
else:
|
||||
self.args = docopt(USAGE, version=VERSION)
|
||||
|
||||
if self.args['gencfg']:
|
||||
# print config and exit
|
||||
|
||||
@@ -225,6 +225,7 @@ class TestOptions(unittest.TestCase):
|
||||
'--dry': False,
|
||||
'--cfg': 'path',
|
||||
'--profile': 'profile',
|
||||
'gencfg': False,
|
||||
}
|
||||
with self.assertRaises(YamlException):
|
||||
Options(args)
|
||||
|
||||
Reference in New Issue
Block a user