1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +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
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

View File

@@ -225,6 +225,7 @@ class TestOptions(unittest.TestCase):
'--dry': False,
'--cfg': 'path',
'--profile': 'profile',
'gencfg': False,
}
with self.assertRaises(YamlException):
Options(args)