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

Class ConnectedTestCase

asyncpg/_testbase/__init__.py:437–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435
436
437class ConnectedTestCase(ClusterTestCase):
438
439 def setUp(self):
440 super().setUp()
441
442 # Extract options set up with `with_connection_options`.
443 test_func = getattr(self, self._testMethodName).__func__
444 opts = getattr(test_func, '__connect_options__', {})
445 self.con = self.loop.run_until_complete(self.connect(**opts))
446 self.server_version = self.con.get_server_version()
447
448 def tearDown(self):
449 try:
450 self.loop.run_until_complete(self.con.close())
451 self.con = None
452 finally:
453 super().tearDown()
454
455
456class HotStandbyTestCase(ClusterTestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…