From 31cb4a369808e85f3ec73a475be2b86fbb9ef0f1 Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:36:45 +0200 Subject: [PATCH] removes unnecessary tests --- .../cache/redis/test_redis_adapter.py | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/cognee/tests/unit/infrastructure/databases/cache/redis/test_redis_adapter.py b/cognee/tests/unit/infrastructure/databases/cache/redis/test_redis_adapter.py index fab9c00b1..73725e013 100644 --- a/cognee/tests/unit/infrastructure/databases/cache/redis/test_redis_adapter.py +++ b/cognee/tests/unit/infrastructure/databases/cache/redis/test_redis_adapter.py @@ -106,30 +106,6 @@ def test_acquire_lock_failure(redis_adapter): mock_lock.acquire.assert_called_once() -def test_acquire_lock_with_custom_parameters(): - """Test lock acquisition with custom timeout parameters.""" - with patch("redis.Redis") as mock_redis_class: - adapter = RedisAdapter( - host="localhost", - port=6379, - lock_name="custom-lock", - timeout=100, - blocking_timeout=200, - ) - - mock_lock = MagicMock() - mock_lock.acquire.return_value = True - adapter.redis.lock.return_value = mock_lock - - adapter.acquire() - - adapter.redis.lock.assert_called_once_with( - name="custom-lock", - timeout=100, - blocking_timeout=200, - ) - - def test_release_lock_success(redis_adapter): """Test successful lock release.""" mock_lock = MagicMock()