Files
2026-08-03 18:42:47 +08:00

23 lines
682 B
Python
Executable File

#!/usr/bin/env python3
import tempfile, unittest
from pathlib import Path
import sys
sys.path.insert(0, str(Path(__file__).parent.parent))
class TestKaryotype(unittest.TestCase):
def setUp(self):
from run import SummarySkill
self.skill = SummarySkill()
self.temp_dir = Path(tempfile.mkdtemp())
def tearDown(self):
import shutil
shutil.rmtree(self.temp_dir, ignore_errors=True)
def test_demo(self):
result = self.skill.run_demo(self.temp_dir)
self.assertEqual(result["status"], "success")
def test_config(self):
self.assertIn("skill", self.skill.config)
if __name__ == "__main__":
unittest.main()