MCPcopy Create free account
hub / github.com/Pylons/webtest / shutdown

Method shutdown

webtest/http.py:93–105  ·  view source on GitHub ↗

Shutdown the server

(self, debug:bool=False)

Source from the content-addressed store, hash-verified

91 raise
92
93 def shutdown(self, debug:bool=False) -> Literal[True]:
94 """Shutdown the server"""
95 # avoid showing traceback related to asyncore
96 self.was_shutdown = True
97 if not debug:
98 self.logger.setLevel(logging.FATAL)
99 while self._map:
100 triggers = list(self._map.values())
101 for trigger in triggers:
102 trigger.handle_close()
103 self.maintenance(0)
104 self.task_dispatcher.shutdown()
105 return True
106
107 @classmethod
108 def create(cls, application, **kwargs):

Callers 4

waitMethod · 0.95
tearDownMethod · 0.80
tearDownMethod · 0.80

Calls

no outgoing calls

Tested by 3

tearDownMethod · 0.64
tearDownMethod · 0.64