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

Method test_extra_forbidden

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

Source from the content-addressed store, hash-verified

119 def test_created_at_auto(self):
120 before = datetime.now(timezone.utc)
121 item = _ConcreteKnowledge(as_of=_now(), source=_src())
122 after = datetime.now(timezone.utc)
123 self.assertGreaterEqual(item.created_at, before)
124 self.assertLessEqual(item.created_at, after)
125
126 def test_frozen(self):
127 item = _ConcreteKnowledge(as_of=_now(), source=_src())
128 with self.assertRaises(ValidationError):
129 item.tags = ["new"] # type: ignore[misc]
130

Callers

nothing calls this directly

Calls 3

_ConcreteKnowledgeClass · 0.85
_nowFunction · 0.70
_srcFunction · 0.70

Tested by

no test coverage detected