MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / test_add_finding

Method test_add_finding

tests/test_core.py:43–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41
42 def test_add_finding(self):
43 target = Target.from_string("example.com")
44 result = ScanResult(target=target, module="test")
45
46 finding = result.add_finding(
47 title="Test Finding",
48 description="Test description",
49 severity=Severity.HIGH,
50 )
51
52 assert finding.title == "Test Finding"
53 assert finding.severity == Severity.HIGH
54 assert len(result.findings) == 1
55 assert result.findings[0].title == "Test Finding"
56 assert result.findings[0].severity == Severity.HIGH
57
58 def test_complete(self):

Callers

nothing calls this directly

Calls 3

add_findingMethod · 0.95
ScanResultClass · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected