(**kwargs)
| 2460 | base_dsn = 'postgresql://ssl_user@localhost/postgres' |
| 2461 | |
| 2462 | async def rejected(**kwargs): |
| 2463 | async with self.connection_proxy() as (port, seen): |
| 2464 | with self.assertRaisesRegex( |
| 2465 | asyncpg.ClientConfigurationError, |
| 2466 | 'direct TLS requires sslmode', |
| 2467 | ): |
| 2468 | await self.connect(port=port, **kwargs) |
| 2469 | self.assertEqual(seen, []) |
| 2470 | |
| 2471 | for mode in ('disable', 'allow', 'prefer'): |
| 2472 | with self.subTest(mode=mode): |
nothing calls this directly
no test coverage detected