mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed typo in code example
This commit is contained in:
parent
dde3c500c7
commit
beb98bf454
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ Here's a test for that plugin that mocks the HTTPX outbound request:
|
||||||
response = await datasette.client.post("/-/fetch-url", data={
|
response = await datasette.client.post("/-/fetch-url", data={
|
||||||
"url": "https://www.example.com/"
|
"url": "https://www.example.com/"
|
||||||
})
|
})
|
||||||
asert response.text == "Hello world"
|
assert response.text == "Hello world"
|
||||||
|
|
||||||
outbound_request = httpx_mock.get_request()
|
outbound_request = httpx_mock.get_request()
|
||||||
assert outbound_request.url == "https://www.example.com/"
|
assert outbound_request.url == "https://www.example.com/"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue