mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
test(telegram): guard PTB integration tests with importorskip
CI test slices don't install python-telegram-bot (optional dep), causing
a ModuleNotFoundError on collection. Add pytest.importorskip('telegram')
before the PTB imports.
This commit is contained in:
parent
c5aaf76468
commit
adf62065a7
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
|||
import asyncio
|
||||
|
||||
import pytest
|
||||
|
||||
pytest.importorskip("telegram") # PTB is an optional dependency; skip if absent.
|
||||
from telegram.error import Conflict, TelegramError
|
||||
from telegram.request import BaseRequest
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue