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

Method setUpClass

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

Source from the content-addressed store, hash-verified

393
394 @classmethod
395 def setUpClass(cls):
396 super().setUpClass()
397 conn_spec = cls.cluster.get_connection_spec()
398 host = conn_spec.get('host')
399 if not host:
400 host = '127.0.0.1'
401 elif host.startswith('/'):
402 host = '127.0.0.1'
403 cls.proxy = fuzzer.TCPFuzzingProxy(
404 backend_host=host,
405 backend_port=conn_spec['port'],
406 )
407 cls.proxy.start()
408
409 @classmethod
410 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