|
@@ -25,6 +25,8 @@ import pytest_asyncio
|
|
|
# Import chattolib types for tests - using vendored chattolib from adapter
|
|
# Import chattolib types for tests - using vendored chattolib from adapter
|
|
|
|
|
|
|
|
# -- Path setup --
|
|
# -- Path setup --
|
|
|
|
|
+PLUGIN_ROOT = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
+sys.path.insert(0, PLUGIN_ROOT)
|
|
|
sys.path.insert(0, "/opt/hermes")
|
|
sys.path.insert(0, "/opt/hermes")
|
|
|
sys.path.insert(0, "/root/.hermes/plugins/platforms/chatto")
|
|
sys.path.insert(0, "/root/.hermes/plugins/platforms/chatto")
|
|
|
|
|
|
|
@@ -37,7 +39,6 @@ from adapter import (
|
|
|
validate_config,
|
|
validate_config,
|
|
|
register,
|
|
register,
|
|
|
)
|
|
)
|
|
|
-
|
|
|
|
|
from gateway.config import PlatformConfig
|
|
from gateway.config import PlatformConfig
|
|
|
from gateway.platforms.base import SendResult, MessageEvent, MessageType
|
|
from gateway.platforms.base import SendResult, MessageEvent, MessageType
|
|
|
|
|
|