Test harness simulates raw_path/path properly

This causes tests to fail.
This commit is contained in:
Simon Willison 2019-06-23 08:59:10 -07:00
commit 4b6b409d85

View file

@ -12,6 +12,7 @@ import sys
import string
import tempfile
import time
from urllib.parse import unquote
class TestResponse:
@ -50,7 +51,8 @@ class TestClient:
"type": "http",
"http_version": "1.0",
"method": "GET",
"path": path,
"path": unquote(path),
"raw_path": path.encode("ascii"),
"query_string": query_string,
"headers": [[b"host", b"localhost"]],
},