get_session_stats returns a stats object with session_id attribute.
(self, monkeypatch)
| 1587 | |
| 1588 | @pytest.mark.asyncio |
| 1589 | async def test_get_session_stats(self, monkeypatch): |
| 1590 | """get_session_stats returns a stats object with session_id attribute.""" |
| 1591 | ctx = _make_initialized_ctx(monkeypatch) |
| 1592 | ctx._system_prompt = "SYS" |
| 1593 | await ctx._initialize_session() |
| 1594 | |
| 1595 | stats = await ctx.get_session_stats() |
| 1596 | # SessionManager.get_stats() returns a SessionStats (DictCompatModel) object |
| 1597 | assert stats is not None |
| 1598 | assert hasattr(stats, "session_id") |
| 1599 | |
| 1600 | |
| 1601 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected