Skip to content

Commit

Permalink
Update tests/exploits/cve_2014_7169_test.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Elyousfi <[email protected]>
  • Loading branch information
BlueSquare1 and elyousfi5 authored Nov 24, 2023
1 parent 4a86982 commit 63b98fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/exploits/cve_2014_7169_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@ def testCVE20147169_whenSafe_reportNothing(mocker: plugin.MockerFixture) -> None
def side_effect(*args, **kwargs): # type: ignore[no-untyped-def]
mock_response = mocker.Mock(spec=requests.Response)
elapsed = datetime.timedelta(seconds=random.randint(30, 90))

mock_response.elapsed = elapsed
return mock_response

mocker.patch("requests.sessions.Session.get", side_effect=side_effect)

target = definitions.Target(scheme="https", host="127.0.0.1", port=8081)
exploit_instance = cve_2014_7169.CVE20147169Exploit()

Expand Down

0 comments on commit 63b98fd

Please sign in to comment.