MCPcopy Index your code
hub / github.com/bugy/script-server / request

Method request

src/tests/web/server_test.py:263–269  ·  view source on GitHub ↗
(self, method, url, session=None, auth=None)

Source from the content-addressed store, hash-verified

261 return response.cookies.get('_xsrf')
262
263 def request(self, method, url, session=None, auth=None):
264 if session is None:
265 session = self._user_session
266
267 response = session.request(method, url, auth=auth)
268 self.assertEqual(200, response.status_code, 'Failed to execute request: ' + response.text)
269 return response.json()
270
271 def check_server_running(self):
272 response = self._user_session.get('http://127.0.0.1:12345/conf')

Callers 5

test_get_scriptsMethod · 0.95
test_get_script_codeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected