Skip to content

Commit

Permalink
fix unittest docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
ybadaoui-ostorlab committed Oct 16, 2024
1 parent f8c2e2e commit c349e5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/exploits/cve_2024_9487_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def testCVE20249487_whenVulnerable_reportFinding(
def testCVE20249487_whenNotVulnerable_reportNothing(
requests_mock: req_mock.mocker.Mocker,
) -> None:
"""CVE_2024_9487 unit test: case when target is vulnerable."""
"""CVE_2024_9487 unit test: case when target is not vulnerable."""
requests_mock.get(
"http://localhost:80/",
text="""
Expand All @@ -60,7 +60,7 @@ def testCVE20249487_whenNotVulnerable_reportNothing(
def testCVE20249487_whenVersionVeryOld_reportFinding(
requests_mock: req_mock.mocker.Mocker,
) -> None:
"""CVE_2024_9487 unit test: case when target is vulnerable."""
"""CVE_2024_9487 unit test: case when matched version is older that 3.11."""
requests_mock.get(
"http://localhost:80/",
text="""
Expand Down Expand Up @@ -88,7 +88,7 @@ def testCVE20249487_whenVersionVeryOld_reportFinding(
def testCVE20249487_whenMultiVersions_doNotCrash(
requests_mock: req_mock.mocker.Mocker,
) -> None:
"""CVE_2024_9487 unit test: case when target is vulnerable."""
"""CVE_2024_9487 unit test: case when multible versions matched."""
requests_mock.get(
"http://localhost:80/",
text="""
Expand Down

0 comments on commit c349e5a

Please sign in to comment.