Empty Datasette([]) list is no longer required

This commit is contained in:
Simon Willison 2022-05-16 17:06:40 -07:00 committed by GitHub
commit a5acfff4bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ If you use the template described in :ref:`writing_plugins_cookiecutter` your pl
@pytest.mark.asyncio
async def test_plugin_is_installed():
datasette = Datasette([], memory=True)
datasette = Datasette(memory=True)
response = await datasette.client.get("/-/plugins.json")
assert response.status_code == 200
installed_plugins = {p["name"] for p in response.json()}