# 2026-10-15T10:02Z, второй экземпляр API с SESSION_TTL_SECONDS=2 (в compose: api-ttl на 8081)
$ python student-tests/expiry.py
  ok   - login -> 201
  ok   - expires_at is about 2s ahead (got 2.00s)
  ok   - token works before expiry
  ok   - expired token -> 401 (cache does not extend the session)

4 passed, 0 failed
