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

Class FakePdfDoc

tests/test_common.py:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55class FakePdfDoc:
56 def __init__(self, metadata: dict[str, str], pages: list[str]) -> None:
57 self.metadata = metadata
58 self._pages = [FakePdfPage(text) for text in pages]
59
60 def __len__(self) -> int:
61 return len(self._pages)
62
63 def __getitem__(self, index: int) -> FakePdfPage:
64 return self._pages[index]
65
66 def close(self) -> None:
67 return None
68
69
70class FakeFitz:

Calls

no outgoing calls