Skip to content

Commit

Permalink
Update test case for WordPress outdated version
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1nb0rn committed Jul 24, 2024
1 parent c3605b9 commit 5d3d677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_eol_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ def test_search_wp_general(self):
self.maxDiff = None
query = 'cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*'
result = search_vulns.search_vulns(query=query, add_other_exploit_refs=False, is_good_cpe=True)
expected_result = {'status': 'N/A', 'latest': '6.5.5', 'ref': 'https://endoflife.date/wordpress'}
expected_result = {'status': 'N/A', 'latest': '6.6', 'ref': 'https://endoflife.date/wordpress'}
self.assertEqual(result[query]['version_status'], expected_result)

def test_search_wp_572(self):
self.maxDiff = None
query = 'cpe:2.3:a:wordpress:wordpress:5.7.2:*:*:*:*:*:*:*'
result = search_vulns.search_vulns(query=query, add_other_exploit_refs=False, is_good_cpe=True)
expected_result = {'status': 'eol', 'latest': '6.5.5', 'ref': 'https://endoflife.date/wordpress'}
expected_result = {'status': 'eol', 'latest': '6.6', 'ref': 'https://endoflife.date/wordpress'}
self.assertEqual(result[query]['version_status'], expected_result)

def test_search_jquery_general(self):
Expand Down

0 comments on commit 5d3d677

Please sign in to comment.