MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_safe_content

Method test_safe_content

tests/unit/test_patterns.py:98–109  ·  view source on GitHub ↗

Safe content does not trigger false positives.

(self)

Source from the content-addressed store, hash-verified

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
102This skill helps users with their tasks.
103
104## Usage
1051. Ask for help
1062. Get a response
107"""
108 findings = prompt_injection_module.analyze(content, "test.md", "markdown")
109 assert len(findings) == 0
110
111
112class TestDataExfiltration:

Callers

nothing calls this directly

Calls 1

analyzeMethod · 0.80

Tested by

no test coverage detected