MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / setUpClass

Method setUpClass

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

Source from the content-addressed store, hash-verified

457class TestSspiAuthentication(BaseTestAuthentication):
458 @classmethod
459 def setUpClass(cls):
460 cls.username = f'{os.getlogin()}@{socket.gethostname()}'
461 cls.USERS = [
462 (cls.username, 'sspi', None),
463 (f'wrong-{cls.username}', 'sspi', None),
464 ]
465 super().setUpClass()
466
467 async def test_auth_sspi(self):
468 conn = await self.connect(user=self.username)

Callers

nothing calls this directly

Calls 1

setUpClassMethod · 0.45

Tested by

no test coverage detected