mirror of
https://github.com/MervinPraison/PraisonAIUI.git
synced 2026-11-07 05:56:17 -10:00
fix(tests): skip meeting-agent tests when praisonai_tools is unavailable
The 6 new meeting-agent tests invoke the external PraisonAI-Tools 'meeting_tools' module, which is not a PraisonAIUI CI dependency, causing ModuleNotFoundError failures on Python 3.10/3.11/3.12. Guard them with pytest.importorskip so CI skips them cleanly instead of failing, matching how the example treats its other optional heavy deps. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
ced5a52871
commit
c7dc8a751a
3 files changed
+6
No files matched your search
@@ -108,6 +108,7 @@ def test_transcript_webhook_keys_are_unique_per_utterance():
|
||||
|
||||
|
||||
def test_upsert_live_transcript_replaces_partial():
|
||||
pytest.importorskip("praisonai_tools") # external PraisonAI-Tools dep, optional in CI
|
||||
processor = _load("part_b_processor2", _ROOT / "integrations" / "recall" / "processor.py")
|
||||
with patch("integrations.recall.live.publish_live_chunk") as publish:
|
||||
with patch("praisonai_tools.tools.meeting_tools.get_meeting") as get_m:
|
||||
|
||||
@@ -9,6 +9,10 @@ from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
# The ingest pipeline calls the external PraisonAI-Tools ``meeting_tools`` at
|
||||
# runtime; it is not a PraisonAIUI CI dependency, so skip when unavailable.
|
||||
pytest.importorskip("praisonai_tools")
|
||||
|
||||
_PIPELINE = (
|
||||
Path(__file__).resolve().parents[2]
|
||||
/ "examples"
|
||||
|
||||
@@ -77,6 +77,7 @@ def test_verify_request_rejects_bad_signature():
|
||||
|
||||
|
||||
def test_schedule_bot_persists_intent_before_api():
|
||||
pytest.importorskip("praisonai_tools") # external PraisonAI-Tools dep, optional in CI
|
||||
service = _load("recall_service", _ROOT / "integrations" / "recall" / "service.py")
|
||||
client = MagicMock()
|
||||
client.create_bot.return_value = {"id": "bot-abc"}
|
||||
|
||||
Reference in new issue
Block a user