Files
2026-07-13 13:12:33 +08:00

37 lines
1.1 KiB
Python

"""Smoke test: every channel adapter must be importable with only base deps.
After 0.1.0's refactor each vendor SDK (lark-oapi / python-telegram-bot /
dingtalk-stream / qq-botpy / cryptography) lives in base ``dependencies``
rather than in an opt-in extra. A bare ``pip install opensquilla`` must
therefore be enough to ``import`` any of the in-tree channel adapters
without raising ``ImportError``.
These tests guard against the regression where someone moves an SDK back
into an extra and silently breaks the "everything works out of the box"
guarantee from the install plan.
"""
from __future__ import annotations
import importlib
def test_feishu_module_importable() -> None:
importlib.import_module("opensquilla.channels.feishu")
def test_telegram_module_importable() -> None:
importlib.import_module("opensquilla.channels.telegram")
def test_dingtalk_module_importable() -> None:
importlib.import_module("opensquilla.channels.dingtalk")
def test_qq_module_importable() -> None:
importlib.import_module("opensquilla.channels.qq")
def test_wecom_module_importable() -> None:
importlib.import_module("opensquilla.channels.wecom")