@@ -29,7 +29,7 @@ def test_license_option_reports_license_expressions():
2929 args = ['--license' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
3030 run_scan_click (args )
3131 test_loc = test_env .get_test_loc ('plugin_license/license-expression/scan.expected.json' )
32- check_json_scan (test_loc , result_file , regen = False )
32+ check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
3333
3434
3535def test_license_option_reports_license_texts ():
@@ -38,7 +38,7 @@ def test_license_option_reports_license_texts():
3838 args = ['--license' , '--license-text' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
3939 run_scan_click (args )
4040 test_loc = test_env .get_test_loc ('plugin_license/text/scan.expected.json' )
41- check_json_scan (test_loc , result_file , regen = False )
41+ check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
4242
4343
4444def test_license_option_reports_license_texts_diag ():
@@ -47,7 +47,7 @@ def test_license_option_reports_license_texts_diag():
4747 args = ['--license' , '--license-text' , '--license-text-diagnostics' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
4848 run_scan_click (args )
4949 test_loc = test_env .get_test_loc ('plugin_license/text/scan-diag.expected.json' )
50- check_json_scan (test_loc , result_file , regen = False )
50+ check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
5151
5252
5353def test_license_option_reports_license_texts_long_lines ():
@@ -56,7 +56,7 @@ def test_license_option_reports_license_texts_long_lines():
5656 args = ['--license' , '--license-text' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
5757 run_scan_click (args )
5858 test_loc = test_env .get_test_loc ('plugin_license/text_long_lines/scan.expected.json' )
59- check_json_scan (test_loc , result_file , regen = False )
59+ check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
6060
6161
6262def test_license_option_reports_license_texts_diag_long_lines ():
@@ -65,7 +65,7 @@ def test_license_option_reports_license_texts_diag_long_lines():
6565 args = ['--license' , '--license-text' , '--license-text-diagnostics' , '--strip-root' , test_dir , '--json' , result_file , '--verbose' ]
6666 run_scan_click (args )
6767 test_loc = test_env .get_test_loc ('plugin_license/text_long_lines/scan-diag.expected.json' )
68- check_json_scan (test_loc , result_file , regen = False )
68+ check_json_scan (test_loc , result_file , regen = False , ignore_headers = True )
6969
7070
7171def test_reindex_licenses_works ():
@@ -81,7 +81,7 @@ def test_scan_license_with_url_template():
8181 test_dir , '--json-pp' , result_file ]
8282 test_loc = test_env .get_test_loc ('plugin_license/license_url.expected.json' )
8383 run_scan_click (args )
84- check_json_scan (test_loc , result_file )
84+ check_json_scan (test_loc , result_file , ignore_headers = True )
8585
8686
8787@pytest .mark .scanslow
@@ -91,7 +91,7 @@ def test_detection_does_not_timeout_on_sqlite3_amalgamation():
9191 expected_file = test_env .get_test_loc ('plugin_license/sqlite/sqlite.expected.json' )
9292 # we use the default 120 seconds timeout
9393 run_scan_click (['-l' , '--license-text' , '--json-pp' , result_file , test_dir ])
94- check_json_scan (expected_file , result_file , remove_file_date = True , regen = False )
94+ check_json_scan (expected_file , result_file , remove_file_date = True , regen = False , ignore_headers = True )
9595
9696
9797@pytest .mark .scanslow
@@ -100,4 +100,4 @@ def test_detection_is_correct_in_legacy_npm_package_json():
100100 result_file = test_env .get_temp_file ('json' )
101101 expected_file = test_env .get_test_loc ('plugin_license/package/package.expected.json' )
102102 run_scan_click (['-lp' , '--json-pp' , result_file , test_dir ])
103- check_json_scan (expected_file , result_file , remove_file_date = True , regen = False )
103+ check_json_scan (expected_file , result_file , remove_file_date = True , regen = False , ignore_headers = True )
0 commit comments