diff --git a/docs/testing_plugins.rst b/docs/testing_plugins.rst
index 8e4e3f91..6361d744 100644
--- a/docs/testing_plugins.rst
+++ b/docs/testing_plugins.rst
@@ -19,7 +19,10 @@ If you use the template described in :ref:`writing_plugins_cookiecutter` your pl
response = await datasette.client.get("/-/plugins.json")
assert response.status_code == 200
installed_plugins = {p["name"] for p in response.json()}
- assert "datasette-plugin-template-demo" in installed_plugins
+ assert (
+ "datasette-plugin-template-demo"
+ in installed_plugins
+ )
This test uses the :ref:`internals_datasette_client` object to exercise a test instance of Datasette. ``datasette.client`` is a wrapper around the `HTTPX `__ Python library which can imitate HTTP requests using ASGI. This is the recommended way to write tests against a Datasette instance.
@@ -37,9 +40,7 @@ If you are building an installable package you can add them as test dependencies
setup(
name="datasette-my-plugin",
# ...
- extras_require={
- "test": ["pytest", "pytest-asyncio"]
- },
+ extras_require={"test": ["pytest", "pytest-asyncio"]},
tests_require=["datasette-my-plugin[test]"],
)
@@ -87,31 +88,34 @@ Here's an example that uses the `sqlite-utils library