@@ -33,7 +33,7 @@ def test_license_option_reports_license_expressions():
3333 args = ['--license' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
3434 run_scan_click (args )
3535 test_loc = test_env .get_test_loc ('plugin_license/license-expression/scan.expected.json' )
36- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
36+ check_json_scan (test_loc , result_file , regen = False )
3737
3838
3939def test_license_option_reports_license_texts ():
@@ -42,7 +42,7 @@ def test_license_option_reports_license_texts():
4242 args = ['--license' , '--license-text' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
4343 run_scan_click (args )
4444 test_loc = test_env .get_test_loc ('plugin_license/text/scan.expected.json' )
45- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
45+ check_json_scan (test_loc , result_file , regen = False )
4646
4747
4848def test_license_option_reports_license_texts_diag ():
@@ -51,7 +51,7 @@ def test_license_option_reports_license_texts_diag():
5151 args = ['--license' , '--license-text' , '--license-text-diagnostics' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
5252 run_scan_click (args )
5353 test_loc = test_env .get_test_loc ('plugin_license/text/scan-diag.expected.json' )
54- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
54+ check_json_scan (test_loc , result_file , regen = False )
5555
5656
5757def test_license_option_reports_license_texts_long_lines ():
@@ -60,7 +60,7 @@ def test_license_option_reports_license_texts_long_lines():
6060 args = ['--license' , '--license-text' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
6161 run_scan_click (args )
6262 test_loc = test_env .get_test_loc ('plugin_license/text_long_lines/scan.expected.json' )
63- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
63+ check_json_scan (test_loc , result_file , regen = False )
6464
6565
6666def test_license_option_reports_license_texts_diag_long_lines ():
@@ -69,7 +69,7 @@ def test_license_option_reports_license_texts_diag_long_lines():
6969 args = ['--license' , '--license-text' , '--license-text-diagnostics' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
7070 run_scan_click (args )
7171 test_loc = test_env .get_test_loc ('plugin_license/text_long_lines/scan-diag.expected.json' )
72- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
72+ check_json_scan (test_loc , result_file , regen = False )
7373
7474
7575def test_license_match_reference ():
@@ -78,7 +78,7 @@ def test_license_match_reference():
7878 args = ['--license' , '--license-text' , '--license-text-diagnostics' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
7979 run_scan_click (args )
8080 test_loc = test_env .get_test_loc ('plugin_license/license_reference/scan-ref.expected.json' )
81- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
81+ check_json_scan (test_loc , result_file , regen = False )
8282
8383
8484def test_license_match_without_reference ():
@@ -87,7 +87,7 @@ def test_license_match_without_reference():
8787 args = ['--license' , '--license-text' , '--license-text-diagnostics' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
8888 run_scan_click (args )
8989 test_loc = test_env .get_test_loc ('plugin_license/license_reference/scan-wref.expected.json' )
90- check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
90+ check_json_scan (test_loc , result_file , regen = False )
9191
9292
9393def test_get_referenced_filenames ():
@@ -145,7 +145,7 @@ def test_scan_license_with_url_template():
145145 test_dir , '--json-pp' , result_file ]
146146 test_loc = test_env .get_test_loc ('plugin_license/license_url.expected.json' )
147147 run_scan_click (args )
148- check_json_scan (test_loc , result_file , ignore_headers = True )
148+ check_json_scan (test_loc , result_file )
149149
150150
151151@pytest .mark .scanslow
@@ -155,7 +155,7 @@ def test_detection_does_not_timeout_on_sqlite3_amalgamation():
155155 expected_file = test_env .get_test_loc ('plugin_license/sqlite/sqlite.expected.json' )
156156 # we use the default 120 seconds timeout
157157 run_scan_click (['-l' , '--license-text' , '--json-pp' , result_file , test_dir ])
158- check_json_scan (expected_file , result_file , remove_file_date = True , regen = False , ignore_headers = True )
158+ check_json_scan (expected_file , result_file , remove_file_date = True , regen = False )
159159
160160
161161@pytest .mark .scanslow
@@ -164,4 +164,4 @@ def test_detection_is_correct_in_legacy_npm_package_json():
164164 result_file = test_env .get_temp_file ('json' )
165165 expected_file = test_env .get_test_loc ('plugin_license/package/package.expected.json' )
166166 run_scan_click (['-lp' , '--json-pp' , result_file , test_dir ])
167- check_json_scan (expected_file , result_file , remove_file_date = True , regen = False , ignore_headers = True )
167+ check_json_scan (expected_file , result_file , remove_file_date = True , regen = False )
0 commit comments