MCPcopy Create free account
hub / github.com/LLMQuant/quant-mind / test_local_file_branch

Method test_local_file_branch

tests/flows/test_paper.py:150–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 self.assertEqual(
149 result.source_revision.title, "Attention Is All You Need"
150 )
151 self.assertEqual(
152 result.source_revision.source.content_hash,
153 result.source_revision.parsed.source_hash,
154 )
155 self.assertFalse(hasattr(result.global_summary, "root_node_id"))
156
157 async def test_summary_failure_prevents_flow_success(self) -> None:
158 provider = _FakeSummaryProvider(fail=RuntimeError("summary failed"))
159
160 with self.assertRaisesRegex(RuntimeError, "summary failed"):
161 await PaperFlow(
162 PaperSemanticCfg(chunk_size=256, chunk_overlap=32),
163 _summary_provider=provider,
164 ).build(LocalFilePath(path=_FIXTURE))
165
166 async def test_same_pdf_and_configs_have_idempotent_ids(self) -> None:
167 cfg = PaperSemanticCfg(chunk_size=256, chunk_overlap=32)
168 first = await PaperFlow(
169 cfg,
170 _summary_provider=_FakeSummaryProvider(),

Callers

nothing calls this directly

Calls 3

FetchedClass · 0.90
_fetch_and_formatFunction · 0.90
LocalFilePathClass · 0.90

Tested by

no test coverage detected