removes unnecessary tests
This commit is contained in:
parent
417e476ee2
commit
31cb4a3698
1 changed files with 0 additions and 24 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue