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

Method test_format_with_results

tests/test_tools.py:331–337  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329 assert "No pastes" in result or "no" in result.lower()
330
331 def test_format_with_results(self):
332 from openosint.tools.search_paste import _format_paste_results
333
334 pastes = [{"id": "abc123", "time": "2026-01-01"} for _ in range(3)]
335 result = _format_paste_results(pastes, "test@example.com")
336 assert "pastebin.com/abc123" in result
337 assert "3" in result
338
339
340# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

_format_paste_resultsFunction · 0.90

Tested by

no test coverage detected