(self)
| 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): |
nothing calls this directly
no test coverage detected