Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fixbug: unit test

莘权 马35d8f4d85627
diff --git a/tests/metagpt/utils/test_redis.py b/tests/metagpt/utils/test_redis.py
index 5d6eb1042..748c44f54 100644
--- a/tests/metagpt/utils/test_redis.py
+++ b/tests/metagpt/utils/test_redis.py
@@ -8,7 +8,6 @@
from unittest.mock import AsyncMock
import pytest
-from pytest_mock import mocker
from metagpt.config2 import Config
from metagpt.utils.redis import Redis
@@ -22,7 +21,7 @@ async def async_mock_from_url(*args, **kwargs):
@pytest.mark.asyncio
-async def test_redis(i):
+async def test_redis(mocker):
redis = Config.default().redis
mocker.patch("aioredis.from_url", return_value=async_mock_from_url())