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

Method test_full

tests/knowledge/test_paper.py:80–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 *result.chunk_set.chunks,
79 ):
80 self.assertNotIn("embedding", value.model_dump())
81 self.assertFalse(hasattr(value, "embedding_text"))
82
83 def test_source_json_excludes_blobs_but_preserves_manifest(self) -> None:
84 source = build_paper_result().source_revision
85 revived = PaperSourceRevision.model_validate_json(
86 source.model_dump_json()
87 )
88
89 self.assertEqual(revived.id, source.id)
90 self.assertEqual(revived.parsed, source.parsed)
91 self.assertEqual(revived.blobs, {})
92 with self.assertRaisesRegex(RuntimeError, "bytes are not loaded"):
93 revived.blob_for(revived.raw_asset_id)
94
95 def test_result_rejects_unknown_model_owned_citation_identity(self) -> None:

Callers

nothing calls this directly

Calls 3

PaperKnowledgeCardClass · 0.90
_nowFunction · 0.70
_srcFunction · 0.70

Tested by

no test coverage detected