mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed bug in httpx_mock example, closes #1691
This commit is contained in:
parent
bd8a58ae61
commit
e73fa72917
1 changed files with 1 additions and 1 deletions
|
|
@ -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={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue