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

Method setUpClass

asyncpg/_testbase/__init__.py:404–416  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

402
403 @classmethod
404 def setUpClass(cls):
405 super().setUpClass()
406 conn_spec = cls.cluster.get_connection_spec()
407 host = conn_spec.get('host')
408 if not host:
409 host = '127.0.0.1'
410 elif host.startswith('/'):
411 host = '127.0.0.1'
412 cls.proxy = fuzzer.TCPFuzzingProxy(
413 backend_host=host,
414 backend_port=int(conn_spec['port']),
415 )
416 cls.proxy.start()
417
418 @classmethod
419 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 4

getMethod · 0.80
setUpClassMethod · 0.45
get_connection_specMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected