Skip to content

Commit 2e69fc2

Browse files
committed
Ignore dates in filter-clues tests
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 4e4e9f7 commit 2e69fc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/cluecode/test_plugin_filter_clues.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_is_empty_():
3030
assert not is_empty(Detections(urls=['Foo']))
3131

3232

33-
def test_scan_plugin_filter_cluesfor_rule():
33+
def test_scan_plugin_filter_clues_for_rule():
3434
# this test fies is a copy of apache-1.1_63.RULE that contains
3535
# several emails, authors, urls and copyrights
3636
# it has been modified to include more unrelated clues
@@ -39,7 +39,7 @@ def test_scan_plugin_filter_cluesfor_rule():
3939
args = ['-clieu', '--filter-clues', test_dir, '--json', result_file]
4040
run_scan_click(args)
4141
expected = test_env.get_test_loc('plugin_filter_clues/filtered-expected.json')
42-
check_json_scan(expected, result_file, regen=False)
42+
check_json_scan(expected, result_file, remove_file_date=True, ignore_headers=True, regen=False)
4343

4444

4545
def test_scan_plugin_filter_clues_does_not_filter_incorrectly():
@@ -51,7 +51,7 @@ def test_scan_plugin_filter_clues_does_not_filter_incorrectly():
5151
args = ['-clieu', '--filter-clues', test_dir, '--json', result_file]
5252
run_scan_click(args)
5353
expected = test_env.get_test_loc('plugin_filter_clues/filtered-expected2.json')
54-
check_json_scan(expected, result_file, regen=False)
54+
check_json_scan(expected, result_file, remove_file_date=True, ignore_headers=True, regen=False)
5555

5656

5757
def test_scan_plugin_filter_clues_for_license():
@@ -62,4 +62,4 @@ def test_scan_plugin_filter_clues_for_license():
6262
args = ['-clieu', '--filter-clues', test_dir, '--json', result_file]
6363
run_scan_click(args)
6464
expected = test_env.get_test_loc('plugin_filter_clues/filtered-expected3.json')
65-
check_json_scan(expected, result_file, regen=False)
65+
check_json_scan(expected, result_file, remove_file_date=True, ignore_headers=True, regen=False)

0 commit comments

Comments
 (0)