forked from hyphen-2025/cyber-pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_ai_navigate_when.py
More file actions
30 lines (21 loc) · 974 Bytes
/
test_ai_navigate_when.py
File metadata and controls
30 lines (21 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
Tests for AI agent WHEN clause navigation.
Validates that AGENTS.md contains WHEN clauses for navigation.
"""
import sys
import unittest
from pathlib import Path
# Add skills/cypilot/scripts directory to path
sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "cypilot" / "scripts"))
class TestWhenClauseNavigation(unittest.TestCase):
"""Test AGENTS.md structure and WHEN clauses."""
def test_agents_md_contains_when_clauses(self):
"""Verify AGENTS.md exists and contains WHEN clauses."""
agents_file = Path(__file__).parent.parent / "AGENTS.md"
self.assertTrue(agents_file.exists(), "AGENTS.md must exist")
content = agents_file.read_text(encoding='utf-8')
self.assertIn("<!-- @cpt:root-agents -->", content)
self.assertIn('cypilot_path = ".bootstrap"', content)
self.assertIn("<!-- /@cpt:root-agents -->", content)
if __name__ == "__main__":
unittest.main(verbosity=2)