Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ TestServer
Class
TestServer
tests/test_exposition.py:267–269 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
265
self.address = f
'http://localhost:{httpd.server_address[1]}'
266
267
class
TestServer(threading.Thread):
268
def
run(self):
269
httpd.handle_request()
270
271
self.server = TestServer()
272
self.server.daemon = True
Callers
1
setUp
Method · 0.85
Calls
no outgoing calls
Tested by
1
setUp
Method · 0.68