MCPcopy Create free account
hub / github.com/psf/cachecontrol / server

Function server

tests/conftest.py:126–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125@pytest.fixture(scope="session")
126def server():
127 cherrypy.tree.graft(SimpleApp(), "/")
128
129 ip, port = get_free_port()
130
131 cherrypy.config.update({"server.socket_host": ip, "server.socket_port": port})
132
133 # turn off logging
134 logger = cherrypy.log.access_log
135 if logger:
136 logger.removeHandler(logger.handlers[0])
137
138 cherrypy.server.start()
139
140 yield cherrypy.server
141
142 cherrypy.server.stop()
143
144
145@pytest.fixture()

Callers

nothing calls this directly

Calls 2

SimpleAppClass · 0.85
get_free_portFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…