mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -66,12 +66,6 @@ def test_unusable_value_raises_value_error(value: object) -> None:
|
||||
Cacher.resolve_datetime(value) # type: ignore[arg-type]
|
||||
|
||||
|
||||
def test_zero_seconds_expires_now(cache: Cacher) -> None:
|
||||
entry = cache.get("key")
|
||||
entry.set({"a": 1}, expiration=0)
|
||||
assert entry.expired
|
||||
|
||||
|
||||
def test_expired_jwt_is_stored_as_expired(cache: Cacher) -> None:
|
||||
entry = cache.get("key")
|
||||
entry.set(jwt.encode({"exp": int(time.time()) - 60}, "k" * 32, algorithm="HS256"))
|
||||
|
||||
Reference in New Issue
Block a user