Test the expiration logic of the session.
()
| 120 | |
| 121 | |
| 122 | def 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 |