MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_record_no_new

Method test_record_no_new

tests/test_record.py:356–362  ·  view source on GitHub ↗

Instances of Record cannot be directly created.

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected