Skip to content

Commit 17a4ca2

Browse files
committed
update risk recon unit tests
1 parent 95e3225 commit 17a4ca2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unittests/tools/test_risk_recon_parser.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import datetime
22

3-
import requests
4-
53
from dojo.models import Test
64
from dojo.tools.risk_recon.parser import RiskReconParser
75
from unittests.dojo_test_case import DojoTestCase, get_unit_tests_scans_path
@@ -11,7 +9,7 @@ class TestRiskReconAPIParser(DojoTestCase):
119

1210
def test_api_with_bad_url(self):
1311
with (get_unit_tests_scans_path("risk_recon") / "bad_url.json").open(encoding="utf-8") as testfile, \
14-
self.assertRaises(requests.exceptions.ConnectionError):
12+
self.assertRaises(Exception): # noqa: B017 # SSRFError is caught and re-raised as Exception in api.py
1513
parser = RiskReconParser()
1614
parser.get_findings(testfile, Test())
1715

0 commit comments

Comments
 (0)