kopia lustrzana https://github.com/simonw/datasette
Fixed bug in httpx_mock example, closes #1691
rodzic
bd8a58ae61
commit
e73fa72917
|
@ -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):
|
async def test_outbound_http_call(httpx_mock):
|
||||||
httpx_mock.add_response(
|
httpx_mock.add_response(
|
||||||
url='https://www.example.com/',
|
url='https://www.example.com/',
|
||||||
data='Hello world',
|
text='Hello world',
|
||||||
)
|
)
|
||||||
datasette = Datasette([], memory=True)
|
datasette = Datasette([], memory=True)
|
||||||
response = await datasette.client.post("/-/fetch-url", data={
|
response = await datasette.client.post("/-/fetch-url", data={
|
||||||
|
|
Ładowanie…
Reference in New Issue