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

Method test_created_at_auto

tests/knowledge/test_base.py:109–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 )
108 revived = _ConcreteKnowledge.model_validate_json(item.model_dump_json())
109 self.assertEqual(revived.available_at, _now() + timedelta(hours=2))
110
111 def test_available_at_defaults_to_unknown(self):
112 item = _ConcreteKnowledge(as_of=_now(), source=_src())
113 self.assertIsNone(item.available_at)
114
115 def test_default_schema_version(self):
116 item = _ConcreteKnowledge(as_of=_now(), source=_src())
117 self.assertEqual(item.schema_version, "1.0")

Callers

nothing calls this directly

Calls 3

_ConcreteKnowledgeClass · 0.85
_nowFunction · 0.70
_srcFunction · 0.70

Tested by

no test coverage detected