Integration tests #3

Merged
root merged 3 commits from integration-tests into main 2025-01-01 18:18:38 +00:00
Showing only changes of commit 2f7b42da38 - Show all commits

View file

@ -2,7 +2,7 @@ from unittest.mock import patch
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
@ -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:
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)