Instances of Record cannot be directly created.
(self)
| 354 | self.assertTrue(isinstance(r, asyncpg.Record)) |
| 355 | |
| 356 | async def test_record_no_new(self): |
| 357 | """Instances of Record cannot be directly created.""" |
| 358 | with self.assertRaisesRegex( |
| 359 | TypeError, |
| 360 | "cannot create 'asyncpg.protocol.record.Record' instances", |
| 361 | ): |
| 362 | asyncpg.Record() |
| 363 | |
| 364 | @tb.with_connection_options(record_class=CustomRecord) |
| 365 | async def test_record_subclass_01(self): |
nothing calls this directly
no outgoing calls
no test coverage detected