Skip to content

Commit 07aaa75

Browse files
committed
Add ScanCode file paths to JSON output #87
Signed-off-by: John M. Horan <johnmhoran@gmail.com>
1 parent 12ef3f1 commit 07aaa75

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/deltacode/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def cli(new, old, csv_file, json_file, all_delta_types):
100100
"""
101101
# retrieve the option selections
102102
options = OrderedDict([
103+
('new_scan_path', new),
104+
('old_scan_path', old),
103105
('--all-delta-types', all_delta_types)
104106
])
105107

tests/test_cli.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,11 @@ def test_json_output_option_selected_all_selected(self):
415415

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

418-
options = {'--all-delta-types': True}
418+
options = {
419+
'new_scan_path': new_scan,
420+
'old_scan_path': old_scan,
421+
'--all-delta-types': True
422+
}
419423

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

@@ -569,7 +573,11 @@ def test_json_output_option_selected_all_not_selected(self):
569573

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

572-
options = {'--all-delta-types': False}
576+
options = {
577+
'new_scan_path': new_scan,
578+
'old_scan_path': old_scan,
579+
'--all-delta-types': False
580+
}
573581

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

0 commit comments

Comments
 (0)