Commit a1a956f
fix: Add public client and metrics properties to RedisShortTermMemory
Added public properties to expose Redis client and metrics:
- client property: Access to Redis client instance (was _client)
- metrics property: Access to RedisMetrics for observability (was _metrics)
This makes the API testable and follows encapsulation best practices.
Results:
- Fixed 2 Redis initialization tests in test_short_term_behavioral.py
- TestRedisShortTermMemoryInitialization: 2 of 5 tests now passing
Files Modified:
- src/empathy_os/memory/short_term.py: Added @Property decorators
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a65bfa1 commit a1a956f
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
196 | 223 | | |
197 | 224 | | |
198 | 225 | | |
| |||
0 commit comments