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

Method setUpClass

tests/test_connect.py:468–474  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

466class TestSspiAuthentication(BaseTestAuthentication):
467 @classmethod
468 def setUpClass(cls):
469 cls.username = f'{os.getlogin()}@{socket.gethostname()}'
470 cls.USERS = [
471 (cls.username, 'sspi', None),
472 (f'wrong-{cls.username}', 'sspi', None),
473 ]
474 super().setUpClass()
475
476 async def test_auth_sspi(self):
477 conn = await self.connect(user=self.username)

Callers

nothing calls this directly

Calls 1

setUpClassMethod · 0.45

Tested by

no test coverage detected