From 4c9fe016bfc8d1bd0dc738d80b2575cd2b58c48a Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 9 Jan 2025 16:00:43 +0800 Subject: [PATCH] fix: test_pipeline --- tests/test_pipeline.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index b75c314ee..ca9f5f8f4 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -1,6 +1,7 @@ import pytest import logging import os +import asyncio from astrbot.core.pipeline.scheduler import PipelineScheduler, PipelineContext from astrbot.core.star import PluginManager from astrbot.core.config.astrbot_config import AstrBotConfig @@ -117,10 +118,10 @@ def star_context(event_queue, config, db, platform_manager, provider_manager): return star_context @pytest.fixture(scope="module") -@pytest.mark.asyncio -async def plugin_manager(star_context, config): +def plugin_manager(star_context, config): plugin_manager = PluginManager(star_context, config) - await plugin_manager.reload() + # await plugin_manager.reload() + asyncio.run(plugin_manager.reload()) return plugin_manager @pytest.fixture(scope="module")