MCPcopy Create free account
hub / github.com/Kaggle/docker-python / GcsDatasetsHTTPHandler

Class GcsDatasetsHTTPHandler

tests/test_datasets.py:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20_AUTOML_GCS_BUCKET = 'gs://kds-automl-ea1971a458ffd4cd51389e7574c022ecc0a82bb1b52ccef08c8a'
21
22class GcsDatasetsHTTPHandler(BaseHTTPRequestHandler):
23
24 def set_request(self):
25 raise NotImplementedError()
26
27 def get_response(self):
28 raise NotImplementedError()
29
30 def do_HEAD(s):
31 s.send_response(200)
32
33 def do_POST(s):
34 s.set_request()
35 s.send_response(200)
36 s.send_header("Content-type", "application/json")
37 s.end_headers()
38 s.wfile.write(json.dumps(s.get_response()).encode("utf-8"))
39
40
41class TestDatasets(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected