mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Test harness simulates raw_path/path properly
This causes tests to fail.
This commit is contained in:
parent
d60fbfcae2
commit
4b6b409d85
1 changed files with 3 additions and 1 deletions
|
|
@ -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"]],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue