Commit fc47dcb
fix: Add total_requests property to RedisMetrics for test compatibility
Added backward compatibility property to RedisMetrics:
- total_requests property: Returns operations_total for test compatibility
This allows tests to check total_requests while maintaining the
actual attribute name as operations_total internally.
Results:
- Fixed Redis initialization test: test_given_default_config_when_init_then_uses_defaults
- TestRedisShortTermMemoryInitialization: 4 of 5 tests now passing (80%)
Remaining failures (2):
- test_given_redis_unavailable_when_init_then_raises_runtime_error (design issue)
- test_given_connection_fails_when_init_then_raises_connection_error (design issue)
Files Modified:
- src/empathy_os/memory/types.py: Added total_requests property
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a1a956f commit fc47dcb
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
191 | 196 | | |
192 | 197 | | |
193 | 198 | | |
| |||
0 commit comments