MCPcopy Create free account
hub / github.com/comaps/comaps / init_server

Method init_server

tools/python/test_server/server/testserver.py:123–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 logging.info(f"Not allowed to start serving for process: {pid}")
122
123 def init_server(self):
124
125 if USE_TORNADO:
126 MainHandler.init_server(PORT, LIFESPAN)
127 else:
128 print("""
129*************
130WARNING: Using the python's built-in BaseHTTPServer!
131It is all right if you run the tests on your local machine, but if you are running tests on a server,
132please consider installing Tornado. It is a much more powerful web-server. Otherwise you will find
133that some of your downloader tests either fail or hang.
134
135do
136
137sudo pip install tornado
138
139or go to http://www.tornadoweb.org/en/stable/ for more detail.
140*************
141""")
142
143 self.server = InternalServer(('localhost', PORT), PostHandler)
144
145
146

Callers 1

__init__Method · 0.95

Calls 1

InternalServerClass · 0.85

Tested by

no test coverage detected