(self, tmp_path, monkeypatch)
| 618 | assert clear_sessions() == 0 |
| 619 | |
| 620 | def test_load_newest_first(self, tmp_path, monkeypatch): |
| 621 | import openosint.session_history as sh |
| 622 | |
| 623 | monkeypatch.setattr(sh, "HISTORY_DIR", tmp_path / "history") |
| 624 | from openosint.session_history import SessionRecord, load_sessions, save_session |
| 625 | |
| 626 | save_session(SessionRecord(timestamp="2026-05-17T09:00:00", duration_seconds=1)) |
| 627 | save_session(SessionRecord(timestamp="2026-05-17T11:00:00", duration_seconds=2)) |
| 628 | sessions = load_sessions() |
| 629 | assert sessions[0]["duration_seconds"] == 2 |
nothing calls this directly
no test coverage detected