X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/41b11505f297962d099b75a0372a4068e26773a5..75c5665e089279f9de1a38b31e03f9736ecdc17e:/testing/fakeserver.py?ds=inline diff --git a/testing/fakeserver.py b/testing/fakeserver.py index 2ed8149..bbeb522 100644 --- a/testing/fakeserver.py +++ b/testing/fakeserver.py @@ -16,25 +16,8 @@ class FakeGlowficHTTPRequestHandler(BaseHTTPRequestHandler): return 200 def do_GET(self) -> None: - body = b''' - -
-
We don't want edit boxes
- This is glowfic -
We don't want footers
-
-
-
-
We don't want edit boxes
- You sure? - -
-
- Pretty sure. -
-
- -''' + with open("testdata/this-is-glowfic.html", "rb") as f: + body = f.read(9999) self.send_response(self._response_code()) self.send_header("Content-type", "text/html") self.send_header("Content-Length", str(len(body)))