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

Function sample_result

tests/test_cache.py:29–42  ·  view source on GitHub ↗

Create sample ScanResult for testing.

()

Source from the content-addressed store, hash-verified

27
28@pytest.fixture
29def sample_result():
30 """Create sample ScanResult for testing."""
31 target = Target.from_string("example.com")
32 result = ScanResult(target=target, module="test")
33
34 finding = Finding(
35 title="Test Finding",
36 description="Test description",
37 severity=Severity.HIGH,
38 source="test",
39 )
40 result.findings.append(finding)
41
42 return result
43
44
45class TestScanCache:

Callers

nothing calls this directly

Calls 3

ScanResultClass · 0.90
FindingClass · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected