get_cached returns None for expired entries
(self, cache: RequestCache)
| 143 | assert result is None |
| 144 | |
| 145 | def test_get_cached_expired(self, cache: RequestCache) -> None: |
| 146 | """get_cached returns None for expired entries""" |
| 147 | cache._cache["req-expired"] = CacheEntry( |
| 148 | response={"success": True}, |
| 149 | created_at=time.time() - 120, # 2 minutes ago |
| 150 | ) |
| 151 | |
| 152 | result = cache.get_cached("req-expired") |
| 153 | assert result is None |
| 154 | |
| 155 | def test_is_pending(self, cache: RequestCache) -> None: |
| 156 | """is_pending returns correct status""" |
nothing calls this directly
no test coverage detected