Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/deltacode/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def cli(new, old, csv_file, json_file, all_delta_types):
"""
# retrieve the option selections
options = OrderedDict([
('new_scan_path', new),
('old_scan_path', old),
('--all-delta-types', all_delta_types)
])

Expand Down
12 changes: 10 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,11 @@ def test_json_output_option_selected_all_selected(self):

assert json_result.get('deltacode_notice') == notice

options = {'--all-delta-types': True}
options = {
'new_scan_path': new_scan,
'old_scan_path': old_scan,
'--all-delta-types': True
}

assert json_result.get('deltacode_options') == options

Expand Down Expand Up @@ -569,7 +573,11 @@ def test_json_output_option_selected_all_not_selected(self):

assert json_result.get('deltacode_notice') == notice

options = {'--all-delta-types': False}
options = {
'new_scan_path': new_scan,
'old_scan_path': old_scan,
'--all-delta-types': False
}

assert json_result.get('deltacode_options') == options

Expand Down