MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_session_expiration

Function test_session_expiration

tests/unit/sessions/test_session.py:122–125  ·  view source on GitHub ↗

Test the expiration logic of the session.

()

Source from the content-addressed store, hash-verified

120
121
122def test_session_expiration() -> None:
123 """Test the expiration logic of the session."""
124 session = Session(created_at=datetime.now(timezone.utc) - timedelta(hours=1))
125 assert session.is_expired

Callers

nothing calls this directly

Calls 1

SessionClass · 0.90

Tested by

no test coverage detected