X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/41b11505f297962d099b75a0372a4068e26773a5..929db57622c6b8756ed341d7ae2862126a7c638f:/testing/fakeserver.py?ds=sidebyside 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)))