Skip to content

Commit 2ae59c9

Browse files
Bump html2text from 2020.1.16 to 2024.2.26 (#9990)
* Bump html2text from 2020.1.16 to 2024.2.26 Bumps [html2text](https://github.com/Alir3z4/html2text) from 2020.1.16 to 2024.2.26. - [Release notes](https://github.com/Alir3z4/html2text/releases) - [Changelog](https://github.com/Alir3z4/html2text/blob/master/ChangeLog.rst) - [Commits](Alir3z4/html2text@2020.1.16...2024.2.26) --- updated-dependencies: - dependency-name: html2text dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fixing Spotbugs unit test error with new html2text version (#10003) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com>
1 parent 4e61c52 commit 2ae59c9

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ django-watson==1.6.3
2626
django-prometheus==2.3.1
2727
Django==4.1.13
2828
djangorestframework==3.14.0
29-
html2text==2020.1.16
29+
html2text==2024.2.26
3030
humanize==4.9.0
3131
jira==3.8.0
3232
PyGithub==1.58.2

unittests/tools/test_spotbugs_parser.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class TestSpotbugsParser(DojoTestCase):
7-
87
def test_no_findings(self):
98
parser = SpotbugsParser()
109
findings = parser.get_findings(get_unit_tests_path() + "/scans/spotbugs/no_finding.xml", Test())
@@ -76,19 +75,15 @@ def test_description(self):
7675
test_finding = findings[0]
7776
# Test if line 13 is correct
7877
self.assertEqual(
79-
"At IdentityFunctionCommandInjection.kt:[lines 20-170]",
80-
test_finding.description.splitlines()[12]
78+
"At IdentityFunctionCommandInjection.kt:[lines 20-170]", test_finding.description.splitlines()[12]
8179
)
8280

8381
def test_mitigation(self):
8482
parser = SpotbugsParser()
8583
findings = parser.get_findings(get_unit_tests_path() + "/scans/spotbugs/many_findings.xml", Test())
8684
test_finding = findings[0]
87-
# Test if line 10 is correct
88-
self.assertEqual(
89-
"#### Example",
90-
test_finding.mitigation.splitlines()[9]
91-
)
85+
# Test if line 8 is correct
86+
self.assertEqual("#### Example", test_finding.mitigation.splitlines()[7])
9287

9388
def test_references(self):
9489
parser = SpotbugsParser()
@@ -97,7 +92,7 @@ def test_references(self):
9792
# Test if line 2 is correct
9893
self.assertEqual(
9994
"[OWASP: Top 10 2013-A1-Injection](https://www.owasp.org/index.php/Top_10_2013-A1-Injection)",
100-
test_finding.references.splitlines()[1]
95+
test_finding.references.splitlines()[1],
10196
)
10297

10398
def test_version_4_4(self):

0 commit comments

Comments
 (0)