Skip to content

Commit 9c58eeb

Browse files
committed
test: mock security-engineer agent to fix CI failure in environments without local config
1 parent f3aba62 commit 9c58eeb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_agents.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ class GhostBrain:
1515
def __init__(self):
1616
self.config = Config()
1717
self.agent_loader = AgentLoader()
18+
# Mock agent for testing in environments without local config (like CI)
19+
self.agent_loader.agents["agency-application-security-engineer"] = {
20+
"name": "agency-application-security-engineer",
21+
"description": "Expert application security engineer",
22+
"system_prompt": "threat modeling and vulnerability audits",
23+
"folder_name": "agency-application-security-engineer",
24+
"path": "/mock/path"
25+
}
1826
self.last_prompt = ""
1927
self.last_system = ""
2028

0 commit comments

Comments
 (0)