We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e3225 commit 17a4ca2Copy full SHA for 17a4ca2
unittests/tools/test_risk_recon_parser.py
@@ -1,7 +1,5 @@
1
import datetime
2
3
-import requests
4
-
5
from dojo.models import Test
6
from dojo.tools.risk_recon.parser import RiskReconParser
7
from unittests.dojo_test_case import DojoTestCase, get_unit_tests_scans_path
@@ -11,7 +9,7 @@ class TestRiskReconAPIParser(DojoTestCase):
11
9
12
10
def test_api_with_bad_url(self):
13
with (get_unit_tests_scans_path("risk_recon") / "bad_url.json").open(encoding="utf-8") as testfile, \
14
- self.assertRaises(requests.exceptions.ConnectionError):
+ self.assertRaises(Exception): # noqa: B017 # SSRFError is caught and re-raised as Exception in api.py
15
parser = RiskReconParser()
16
parser.get_findings(testfile, Test())
17
0 commit comments