Fixed typo in code example

This commit is contained in:
Simon Willison 2021-01-31 00:49:09 -08:00 committed by GitHub
commit beb98bf454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/"