Files
obsidian-wiki/tests/test_wiki_skills.py

32 lines
1.3 KiB
Python

import unittest
from pathlib import Path
class WikiSkillInstructionTests(unittest.TestCase):
def test_wiki_query_documents_hybrid_business_and_wiki_route(self):
text = Path(".skills/wiki-query/SKILL.md").read_text(encoding="utf-8")
self.assertIn("Hybrid Business + Wiki Route", text)
self.assertNotIn("spawn two subagents", text)
self.assertIn("two independent tracks", text)
self.assertIn("parallel subagents are optional", text)
self.assertIn("run the same tracks sequentially", text)
self.assertIn("customer/account health", text)
self.assertIn("product/material situation", text)
self.assertIn("salesperson/team activity", text)
self.assertIn("project progress with commercial signal", text)
self.assertIn("delivery risk", text)
self.assertIn("anomaly explanation", text)
self.assertIn("TOP ranking context", text)
self.assertIn("quality or complaint impact", text)
self.assertIn("ordinary wiki-query", text)
self.assertIn("business facts query", text)
self.assertIn("fuse the two results", text)
self.assertIn("customer_summary", text)
self.assertIn("business sql", text)
self.assertIn("Do not use hybrid mode when filtered mode is active", text)
if __name__ == "__main__":
unittest.main()