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

Method test_is_expired_false

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

Source from the content-addressed store, hash-verified

19 assert entry.created_at <= time.time()
20
21 def test_is_expired_false(self) -> None:
22 entry = CacheEntry(response={"success": True})
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

Callers

nothing calls this directly

Calls 2

is_expiredMethod · 0.95
CacheEntryClass · 0.90

Tested by

no test coverage detected