1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-14 17:37:26 +00:00

fix tests

This commit is contained in:
deadc0de6
2024-10-23 20:27:06 +02:00
committed by deadc0de
parent 50e7cd7ab5
commit 8c42e74350
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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)