Test fixture: concrete subclass that overrides embedding_text.
| 75 | |
| 76 | |
| 77 | class _ConcreteKnowledge(BaseKnowledge): |
| 78 | """Test fixture for shared canonical metadata behavior.""" |
| 79 | |
| 80 | item_type: str = "test" # pyright: ignore[reportIncompatibleVariableOverride] |
| 81 | payload: str = "" |
| 82 | |
| 83 | |
| 84 | class BaseKnowledgeTests(unittest.TestCase): |
| 85 | def test_as_of_required(self): |
| 86 | with self.assertRaises(ValidationError): |
| 87 | _ConcreteKnowledge(source=_src()) # type: ignore[call-arg] |
no outgoing calls