(self)
| 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 |
nothing calls this directly
no test coverage detected