mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Upgrade to httpx 0.20
* Upgrade to httpx 0.20, closes #1488 * TestClient.post() should not default to following redirects
This commit is contained in:
parent
2a8c669039
commit
b267b57754
12 changed files with 60 additions and 71 deletions
|
|
@ -97,11 +97,14 @@ def test_request_url_vars():
|
|||
[("/", "", "/"), ("/", "foo=bar", "/?foo=bar"), ("/foo", "bar", "/foo?bar")],
|
||||
)
|
||||
def test_request_properties(path, query_string, expected_full_path):
|
||||
path_with_query_string = path
|
||||
if query_string:
|
||||
path_with_query_string += "?" + query_string
|
||||
scope = {
|
||||
"http_version": "1.1",
|
||||
"method": "POST",
|
||||
"path": path,
|
||||
"raw_path": path.encode("latin-1"),
|
||||
"raw_path": path_with_query_string.encode("latin-1"),
|
||||
"query_string": query_string.encode("latin-1"),
|
||||
"scheme": "http",
|
||||
"type": "http",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue