From beb98bf45488dcb7b8f0a70e13dbf7b2473c998c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 31 Jan 2021 00:49:09 -0800 Subject: [PATCH] Fixed typo in code example --- docs/testing_plugins.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing_plugins.rst b/docs/testing_plugins.rst index d3f78a97..8ea5e79b 100644 --- a/docs/testing_plugins.rst +++ b/docs/testing_plugins.rst @@ -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={ "url": "https://www.example.com/" }) - asert response.text == "Hello world" + assert response.text == "Hello world" outbound_request = httpx_mock.get_request() assert outbound_request.url == "https://www.example.com/"