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