mirror of
https://github.com/domfelipe/hermes-agent-custom.git
synced 2026-08-07 11:36:48 +00:00
fix: enable mika runtime tools in gateway config
This commit is contained in:
parent
23e98ca785
commit
371e6325b9
3 changed files with 48 additions and 0 deletions
34
tests/test_runtime_config.py
Normal file
34
tests/test_runtime_config.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
class RuntimeConfigTests(unittest.TestCase):
|
||||
def test_entrypoint_enables_mika_runtime_plugin_for_telegram(self) -> None:
|
||||
entrypoint = (ROOT / "entrypoint.sh").read_text(encoding="utf-8")
|
||||
|
||||
self.assertIn("plugins:\n enabled:\n - mika_runtime", entrypoint)
|
||||
self.assertIn(
|
||||
"platform_toolsets:\n"
|
||||
" telegram:\n"
|
||||
" - hermes-telegram\n"
|
||||
" - mika_integrations",
|
||||
entrypoint,
|
||||
)
|
||||
|
||||
def test_dockerfile_fallback_config_matches_runtime_plugin_settings(self) -> None:
|
||||
dockerfile = (ROOT / "Dockerfile").read_text(encoding="utf-8")
|
||||
|
||||
self.assertIn("'plugins:' \\", dockerfile)
|
||||
self.assertIn("' - mika_runtime' \\", dockerfile)
|
||||
self.assertIn("'platform_toolsets:' \\", dockerfile)
|
||||
self.assertIn("' - hermes-telegram' \\", dockerfile)
|
||||
self.assertIn("' - mika_integrations' \\", dockerfile)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue