refactored
Some checks failed
Deploy on push / deploy (push) Failing after 6s

This commit is contained in:
2025-08-17 17:56:31 +03:00
parent e78e12eeee
commit 9a2b792f08
98 changed files with 702 additions and 904 deletions

View File

@@ -61,7 +61,7 @@ await TokenStorage.revoke_session(token)
#### Обновленный API:
```python
from services.redis import redis
from storage.redis import redis
# Базовые операции
await redis.get(key)
@@ -190,7 +190,7 @@ compat = CompatibilityMethods()
await compat.get(token_key)
# Стало
from services.redis import redis
from storage.redis import redis
result = await redis.get(token_key)
```
@@ -263,7 +263,7 @@ pytest tests/auth/ -v
# Проверка Redis подключения
python -c "
import asyncio
from services.redis import redis
from storage.redis import redis
async def test():
result = await redis.ping()
print(f'Redis connection: {result}')

View File

@@ -210,7 +210,7 @@ class MockInfo:
self.field_nodes = [MockFieldNode(requested_fields or [])]
# Патчинг зависимостей
@patch('services.redis.aioredis')
@patch('storage.redis.aioredis')
def test_redis_connection(mock_aioredis):
# Тест логики
pass