Fixed bug in httpx_mock example, closes #1691

This commit is contained in:
Simon Willison 2022-03-26 15:46:08 -07:00 committed by GitHub
commit e73fa72917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ Here's a test for that plugin that mocks the HTTPX outbound request:
async def test_outbound_http_call(httpx_mock):
httpx_mock.add_response(
url='https://www.example.com/',
data='Hello world',
text='Hello world',
)
datasette = Datasette([], memory=True)
response = await datasette.client.post("/-/fetch-url", data={