Skip to content

Commit

Permalink
Fixed bug in httpx_mock example, closes #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 26, 2022
1 parent bd8a58a commit e73fa72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/testing_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit e73fa72

Please sign in to comment.