| 8 | from http.server import BaseHTTPRequestHandler, HTTPServer |
| 9 | |
| 10 | class HTTPHandler(BaseHTTPRequestHandler): |
| 11 | called = False |
| 12 | path = None |
| 13 | headers = {} |
| 14 | |
| 15 | def do_HEAD(self): |
| 16 | self.send_response(200) |
| 17 | |
| 18 | def do_GET(self): |
| 19 | HTTPHandler.path = self.path |
| 20 | HTTPHandler.headers = self.headers |
| 21 | HTTPHandler.called = True |
| 22 | self.send_response(200) |
| 23 | self.send_header("Content-type", "application/json") |
| 24 | self.end_headers() |
| 25 | |
| 26 | class TestGoogleGenerativeAiPatch(unittest.TestCase): |
| 27 | endpoint = "http://127.0.0.1:80" |
nothing calls this directly
no outgoing calls
no test coverage detected