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

Method get_server_settings

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

Source from the content-addressed store, hash-verified

298class ClusterTestCase(TestCase):
299 @classmethod
300 def get_server_settings(cls):
301 settings = {
302 'log_connections': 'on'
303 }
304
305 if cls.cluster.get_pg_version() >= (11, 0):
306 # JITting messes up timing tests, and
307 # is not essential for testing.
308 settings['jit'] = 'off'
309
310 return settings
311
312 @classmethod
313 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