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

Method wait

webtest/http.py:124–133  ·  view source on GitHub ↗

Wait until the server is started

(self, retries=30)

Source from the content-addressed store, hash-verified

122 return server
123
124 def wait(self, retries=30):
125 """Wait until the server is started"""
126 running = check_server(self.adj.host, self.adj.port,
127 '/__application__', retries=retries)
128 if running:
129 return True
130 try:
131 self.shutdown()
132 finally:
133 return False

Callers 4

setUpMethod · 0.80
test_serverMethod · 0.80
test_wsgi_wrapperMethod · 0.80

Calls 2

shutdownMethod · 0.95
check_serverFunction · 0.85

Tested by 4

setUpMethod · 0.64
test_serverMethod · 0.64
test_wsgi_wrapperMethod · 0.64