You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/libs/waitress/tests/fixtureapps/sleepy.py

13 lines
342 B

import time
def app(environ, start_response): # pragma: no cover
if environ["PATH_INFO"] == "/sleepy":
time.sleep(2)
body = b"sleepy returned"
else:
body = b"notsleepy returned"
cl = str(len(body))
start_response("200 OK", [("Content-Length", cl), ("Content-Type", "text/plain")])
return [body]