ruff
This commit is contained in:
parent
06a97f633a
commit
fc6c9587bb
2 changed files with 6 additions and 2 deletions
|
|
@ -207,7 +207,9 @@ def test_multiple_acquire_release_cycles(redis_adapter):
|
|||
|
||||
def test_redis_adapter_redis_client_initialization():
|
||||
"""Test that Redis client is initialized with correct connection parameters."""
|
||||
with patch("cognee.infrastructure.databases.cache.redis.RedisAdapter.redis.Redis") as mock_redis_class:
|
||||
with patch(
|
||||
"cognee.infrastructure.databases.cache.redis.RedisAdapter.redis.Redis"
|
||||
) as mock_redis_class:
|
||||
mock_redis_instance = MagicMock()
|
||||
mock_redis_class.return_value = mock_redis_instance
|
||||
|
||||
|
|
|
|||
|
|
@ -211,7 +211,9 @@ def test_full_workflow_with_context_manager():
|
|||
mock_config.agentic_lock_expire = 240
|
||||
mock_config.agentic_lock_timeout = 300
|
||||
|
||||
with patch("cognee.infrastructure.databases.cache.redis.RedisAdapter.redis.Redis") as mock_redis_class:
|
||||
with patch(
|
||||
"cognee.infrastructure.databases.cache.redis.RedisAdapter.redis.Redis"
|
||||
) as mock_redis_class:
|
||||
mock_redis_instance = MagicMock()
|
||||
mock_redis_class.return_value = mock_redis_instance
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue