ForcePilot/backend/test/unit/channel/temp_check2.py
Kris bab30f2715
Some checks failed
Deploy VitePress site to Pages / build (push) Has been cancelled
Ruff Format Check / Ruff Format & Lint (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
feat:0715
2026-07-15 12:30:58 +08:00

11 lines
383 B
Python

from unittest.mock import MagicMock
import pytest
@pytest.mark.asyncio
async def test_magicmock_isinstance_after_dispatcher_import():
from yuxi.channel.message.dispatcher import ChannelGateway
from yuxi.channel.ports import InboundPort
plugin = MagicMock()
print("isinstance InboundPort:", isinstance(plugin, InboundPort))
assert isinstance(plugin, InboundPort)