MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / FakePdfDoc

Class FakePdfDoc

tests/test_citation_links.py:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class FakePdfDoc:
21 def __init__(self, pages: list[str]) -> None:
22 self._pages = [FakePdfPage(text) for text in pages]
23
24 def __len__(self) -> int:
25 return len(self._pages)
26
27 def __getitem__(self, index: int) -> FakePdfPage:
28 return self._pages[index]
29
30 def close(self) -> None:
31 return None
32
33
34class FakeFitz:

Calls

no outgoing calls