Skip to content

Conversation

@bsbodden
Copy link
Contributor

No description provided.

Adds comprehensive regression tests for Issue #116 where AsyncRedisSaver
would raise AttributeError when accessing blob attributes in _abatch_load_pending_sends.

Tests verify:
- Correct handling of $.blob JSON path attribute syntax
- Graceful fallback when blob attributes are missing
- Proper mocking of Redis Document responses

These tests would have caught the bug fixed in PR #117.
Fixes type error where _task could be None but was being awaited without
proper type guard. Added explicit None check before calling .done() and
awaiting the task.

Resolves mypy error: Incompatible types in 'await' (actual type 'Task[Any] | None',
expected type 'Awaitable[Any]')
…rnings

Test functions were returning boolean values which caused pytest warnings:
'Test functions should return None'. Updated all test functions to only
use assertions without returning values. Updated main() to handle the
new pattern with try/except instead of checking return values.
@bsbodden bsbodden merged commit af45290 into main Nov 14, 2025
19 checks passed
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.

2 participants