Skip to content

Commit c3ad331

Browse files
Update more tests to ignore headers
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 9bd8bc5 commit c3ad331

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/scancode/test_plugin_mark_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ def test_scan_mark_source_with_info(self):
4242
result_file = self.get_temp_file('json')
4343
expected_file = self.get_test_loc('plugin_mark_source/with_info.expected.json')
4444
run_scan_click(['--info', '--mark-source', test_dir, '--json', result_file])
45-
check_json_scan(expected_file, result_file, regen=False)
45+
check_json_scan(expected_file, result_file, regen=False, ignore_headers=True)

tests/scancode/test_plugin_only_findings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ def test_scan_only_findings(self):
2727
result_file = self.get_temp_file('json')
2828
expected_file = self.get_test_loc('plugin_only_findings/basic.expected.json')
2929
run_scan_click(['-clip', '--only-findings', '--json', result_file, test_dir])
30-
check_json_scan(expected_file, result_file, remove_file_date=True, regen=False)
30+
check_json_scan(expected_file, result_file, remove_file_date=True, regen=False, ignore_headers=True)
3131

3232
def test_scan_only_findings_with_errors(self):
3333
test_file = self.get_test_loc('plugin_only_findings/errors.json')
3434
result_file = self.get_temp_file('json')
3535
expected_file = self.get_test_loc('plugin_only_findings/errors.expected.json')
3636
run_scan_click(['--from-json', test_file, '--only-findings',
3737
'--json-pp', result_file])
38-
check_json_scan(expected_file, result_file, remove_file_date=True, regen=False)
38+
check_json_scan(expected_file, result_file, remove_file_date=True, regen=False, ignore_headers=True)
3939

4040
def test_scan_only_findings_with_only_info(self):
4141
test_dir = self.extract_test_tar('plugin_only_findings/basic.tgz')
4242
result_file = self.get_temp_file('json')
4343
expected_file = self.get_test_loc('plugin_only_findings/info.expected.json')
4444
run_scan_click(['--info', '--only-findings', '--json', result_file, test_dir])
45-
check_json_scan(expected_file, result_file, remove_file_date=True, regen=False)
45+
check_json_scan(expected_file, result_file, remove_file_date=True, regen=False, ignore_headers=True)

0 commit comments

Comments
 (0)