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

Class PaperTreeTests

tests/knowledge/test_paper.py:38–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 self.assertNotEqual(result.chunk_set.id, result.global_summary.id)
37 self.assertEqual(len(result.chunk_set.chunks), 3)
38 self.assertEqual(len(result.global_summary.citations), 3)
39
40 def test_unchanged_producer_configs_create_stable_ids(self) -> None:
41 first = build_paper_result()
42 second = build_paper_result()
43
44 self.assertEqual(first.source_revision.id, second.source_revision.id)
45 self.assertEqual(first.chunk_set.id, second.chunk_set.id)
46 self.assertEqual(first.global_summary.id, second.global_summary.id)
47 self.assertEqual(
48 [chunk.chunk_id for chunk in first.chunk_set.chunks],
49 [chunk.chunk_id for chunk in second.chunk_set.chunks],
50 )
51
52 def test_splitter_and_summary_configs_version_independently(self) -> None:
53 original = build_paper_result()
54 new_chunks = build_paper_result(chunk_size=256)
55 new_summary = build_paper_result(summary_model="another-model")
56
57 self.assertEqual(
58 original.source_revision.id, new_chunks.source_revision.id
59 )
60 self.assertNotEqual(original.chunk_set.id, new_chunks.chunk_set.id)
61 self.assertNotEqual(
62 original.global_summary.id, new_chunks.global_summary.id
63 )
64 self.assertEqual(original.chunk_set.id, new_summary.chunk_set.id)
65 self.assertNotEqual(
66 original.global_summary.id, new_summary.global_summary.id

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected