| 16 | |
| 17 | |
| 18 | class 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 | |
| 35 | if __name__ == "__main__": |
| 36 | unittest.main() |
nothing calls this directly
no outgoing calls
no test coverage detected