Skip to content

Commit

Permalink
Update test cases for WordPress 6.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1nb0rn committed Sep 23, 2024
1 parent d5e2796 commit 7aad158
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.6.1', 'ref': 'https://endoflife.date/wordpress'}
expected_result = {'status': 'N/A', 'latest': '6.6.2', '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.6.1', 'ref': 'https://endoflife.date/wordpress'}
expected_result = {'status': 'eol', 'latest': '6.6.2', '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 7aad158

Please sign in to comment.