This commit is contained in:
Ivan Golikov 2025-01-01 19:16:46 +01:00
parent f6a406ba2a
commit 2f7b42da38

View file

@ -2,7 +2,7 @@ from unittest.mock import patch
from redis.asyncio import Redis from redis.asyncio import Redis
from pssecret.utils import get_new_key, save_secret_data from pssecret.utils import get_new_key, save_secret
from ..factories import SecretFactory from ..factories import SecretFactory
@ -27,7 +27,7 @@ async def test_get_new_key_skips_used_keys(_, redis_server: Redis) -> None:
async def test_save_secret_data(redis_server: Redis) -> None: async def test_save_secret_data(redis_server: Redis) -> None:
secret = SecretFactory.build() secret = SecretFactory.build()
key = await save_secret_data(secret, redis_server) key = await save_secret(secret, redis_server)
redis_data: bytes | None = await redis_server.get(key) redis_data: bytes | None = await redis_server.get(key)