MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / test_load_empty_when_dir_absent

Method test_load_empty_when_dir_absent

tests/test_tools.py:553–559  ·  view source on GitHub ↗
(self, tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

551 assert s["targets"] == ["test@example.com"]
552
553 def test_load_empty_when_dir_absent(self, tmp_path, monkeypatch):
554 import openosint.session_history as sh
555
556 monkeypatch.setattr(sh, "HISTORY_DIR", tmp_path / "nonexistent")
557 from openosint.session_history import load_sessions
558
559 assert load_sessions() == []
560
561 def test_count_sessions_zero_when_empty(self, tmp_path, monkeypatch):
562 import openosint.session_history as sh

Callers

nothing calls this directly

Calls 1

load_sessionsFunction · 0.90

Tested by

no test coverage detected