| 48 | |
| 49 | |
| 50 | class SourceRefTests(unittest.TestCase): |
| 51 | def test_minimal(self): |
| 52 | s = SourceRef(kind="arxiv", uri="arxiv:2604.12345") |
| 53 | self.assertEqual(s.kind, "arxiv") |
| 54 | self.assertEqual(s.uri, "arxiv:2604.12345") |
| 55 | self.assertIsNone(s.fetched_at) |
| 56 | self.assertIsNone(s.content_hash) |
| 57 | |
| 58 | def test_kind_enum_enforced(self): |
| 59 | with self.assertRaises(ValidationError): |
| 60 | SourceRef(kind="ftp") # type: ignore[arg-type] |
| 61 | |
| 62 | def test_extra_forbidden(self): |
| 63 | with self.assertRaises(ValidationError): |
| 64 | SourceRef(kind="manual", garbage=1) # type: ignore[call-arg] |
| 65 | |
| 66 | |
| 67 | class ExtractionRefTests(unittest.TestCase): |
nothing calls this directly
no outgoing calls
no test coverage detected