🌟 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.pyindex 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 AsyncMockimport pytest-from pytest_mock import mockerfrom metagpt.config2 import Configfrom 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().redismocker.patch("aioredis.from_url", return_value=async_mock_from_url())