Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Oct 24, 2024
1 parent 50e7cd7 commit 8c42e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotdrop/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ def __init__(self, args=None):

# 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
Expand Down
1 change: 1 addition & 0 deletions tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def test_options_debug(self, mock_exists):
'--dry': False,
'--cfg': 'path',
'--profile': 'profile',
'gencfg': False,
}
with self.assertRaises(YamlException):
Options(args)
Expand Down

0 comments on commit 8c42e74

Please sign in to comment.