MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_is_expired_true

Method test_is_expired_true

tests/test_request_cache.py:25–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 assert entry.is_expired(ttl_seconds=60.0) is False
24
25 def test_is_expired_true(self) -> None:
26 # Create entry with old timestamp
27 entry = CacheEntry(response={"success": True}, created_at=time.time() - 120)
28 assert entry.is_expired(ttl_seconds=60.0) is True
29
30
31class TestRequestCache:

Callers

nothing calls this directly

Calls 2

is_expiredMethod · 0.95
CacheEntryClass · 0.90

Tested by

no test coverage detected