From c349e5aecf1232660bec76aa0f218506d2d50950 Mon Sep 17 00:00:00 2001 From: ybadaoui-ostorlab Date: Wed, 16 Oct 2024 16:45:50 +0100 Subject: [PATCH] fix unittest docstrings --- tests/exploits/cve_2024_9487_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/exploits/cve_2024_9487_test.py b/tests/exploits/cve_2024_9487_test.py index 8b61c15..30f47f6 100644 --- a/tests/exploits/cve_2024_9487_test.py +++ b/tests/exploits/cve_2024_9487_test.py @@ -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=""" @@ -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=""" @@ -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="""