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

Method _test_sslmode_works

tests/test_connect.py:2123–2128  ·  view source on GitHub ↗
(
        self, sslmode, *, expected_ssl, host='localhost',
    )

Source from the content-addressed store, hash-verified

2121 await pool.close()
2122
2123 async def _test_sslmode_works(
2124 self, sslmode, *, expected_ssl, host='localhost',
2125 ):
2126 await self._test_works(
2127 dsn='postgresql://foo/postgres?sslmode=' + sslmode,
2128 host=host, user='ssl_user', expected_ssl=expected_ssl)
2129
2130 async def _test_sslmode_fails(
2131 self, sslmode, *, host='localhost',

Calls 1

_test_worksMethod · 0.95

Tested by

no test coverage detected