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 f6a406ba2a - Show all commits

View file

@ -6,7 +6,7 @@ from redis.asyncio import Redis
from pssecret.models import Secret, SecretSaveResult
from pssecret.redis_db import get_redis
from pssecret.utils import save_secret_data
from pssecret.utils import save_secret
app = FastAPI()
@ -25,7 +25,7 @@ RedisDep = Annotated[Redis, Depends(get_redis)]
)
async def set_secret(data: Secret, redis: RedisDep) -> dict[str, str]:
return {
"key": await save_secret_data(data, redis),
"key": await save_secret(data, redis),
}