MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / initialize_target

Function initialize_target

web/pgadmin/tools/debugger/tests/utils.py:109–127  ·  view source on GitHub ↗
(self, utils, close_debugger_instance=True)

Source from the content-addressed store, hash-verified

107
108
109def initialize_target(self, utils, close_debugger_instance=True):
110 target_url = '/debugger/initialize_target/{0}/'.format(self.type)
111 response = self.tester.post(
112 target_url + str(self.trans_id) + '/' + str(self.server_id) +
113 '/' + str(self.db_id) + '/' + str(self.schema_id) +
114 '/' + str(self.func_id),
115 content_type='application/json')
116
117 if response.status_code == 200:
118 return response
119 else:
120 if close_debugger_instance:
121 close_debugger(self)
122
123 delete_function(self, utils)
124 self.skipTest('The debugger plugin is not enabled. Please add the '
125 'plugin to the shared_preload_libraries setting in the '
126 'postgresql.conf file and restart the database server '
127 'for indirect debugging.')
128
129
130def start_listener(self, utils, db_utils):

Callers

nothing calls this directly

Calls 2

close_debuggerFunction · 0.85
delete_functionFunction · 0.85

Tested by

no test coverage detected