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

Class FactorTests

tests/knowledge/test_factor.py:18–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class FactorTests(unittest.TestCase):
19 def test_minimal(self):
20 f = Factor(as_of=_now(), source=_src(), factor_name="momentum_12_1")
21 self.assertEqual(f.item_type, "factor")
22 self.assertEqual(f.factor_name, "momentum_12_1")
23 self.assertIsNone(f.universe)
24
25 def test_retrieval_projection_is_not_a_domain_method(self):
26 f = Factor(
27 as_of=_now(),
28 source=_src(),
29 factor_name="value",
30 universe="us_equities",
31 )
32 self.assertFalse(hasattr(f, "embedding_text"))
33
34
35if __name__ == "__main__":
36 unittest.main()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected