Safe content does not trigger false positives.
(self)
| 96 | assert not any(f.rule_id == "P2" for f in findings) |
| 97 | |
| 98 | def test_safe_content(self) -> None: |
| 99 | """Safe content does not trigger false positives.""" |
| 100 | content = """# Safe Skill |
| 101 | |
| 102 | This skill helps users with their tasks. |
| 103 | |
| 104 | ## Usage |
| 105 | 1. Ask for help |
| 106 | 2. Get a response |
| 107 | """ |
| 108 | findings = prompt_injection_module.analyze(content, "test.md", "markdown") |
| 109 | assert len(findings) == 0 |
| 110 | |
| 111 | |
| 112 | class TestDataExfiltration: |