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

Method get_server_settings

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

Source from the content-addressed store, hash-verified

301class ClusterTestCase(TestCase):
302 @classmethod
303 def get_server_settings(cls):
304 settings = {
305 'log_connections': 'on'
306 }
307
308 if cls.cluster.get_pg_version() >= (11, 0):
309 # JITting messes up timing tests, and
310 # is not essential for testing.
311 settings['jit'] = 'off'
312
313 return settings
314
315 @classmethod
316 def new_cluster(cls, ClusterCls, *, cluster_kwargs={}, initdb_options={}):

Callers 2

setup_clusterMethod · 0.45
get_server_settingsMethod · 0.45

Calls 1

get_pg_versionMethod · 0.80

Tested by

no test coverage detected