Skip to content

Conversation

@Nottezz
Copy link
Collaborator

@Nottezz Nottezz commented Oct 21, 2025

Если мы передаём не async Redis, то получаем непонятную ошибку:
image
Причём ошибка проявляет себя лишь когда мы уже откроем страницу, на моменте запуска всё будет хорошо.

Теперь же ошибка появляется на самом старте и объясняется:
image

@Nottezz Nottezz requested a review from chud0 October 21, 2025 14:56
@Nottezz Nottezz self-assigned this Oct 21, 2025
@Nottezz Nottezz removed the request for review from chud0 October 21, 2025 14:56
@Nottezz Nottezz marked this pull request as ready for review October 21, 2025 14:57
@Nottezz Nottezz marked this pull request as draft October 22, 2025 11:02
@Nottezz Nottezz marked this pull request as ready for review October 30, 2025 12:11
@Nottezz Nottezz requested a review from chud0 October 30, 2025 12:12
ttl: float, expect_error: Type[BaseException] | None
) -> None:
mock_redis = AsyncMock()
mock_redis = AsyncMock(spec=AsyncRedis)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я тут задумался о том, что бы убрать моки и гонять тесты, развёртывая реальный Редис в контейнере, Action такое предоставляет.

Сложность будет в том, что локально тоже надо будет запускать у себя контейнер что б тесты не фейлились.

@Nottezz Nottezz merged commit 673029a into main Nov 10, 2025
3 checks passed
@Nottezz Nottezz deleted the feature/redis-async-check branch November 10, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants