mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Raise an exception if a "plugins" block exists in metadata.json
This commit is contained in:
parent
35deaabcb1
commit
3d6d1e3050
4 changed files with 31 additions and 3 deletions
|
|
@ -879,6 +879,14 @@ def test_hook_forbidden(restore_working_directory):
|
|||
)
|
||||
|
||||
|
||||
def test_plugin_config_in_metadata():
|
||||
with pytest.raises(
|
||||
Exception,
|
||||
match="Datasette no longer accepts plugin configuration in --metadata",
|
||||
):
|
||||
Datasette(memory=True, metadata={"plugins": {}})
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_hook_handle_exception(ds_client):
|
||||
await ds_client.get("/trigger-error?x=123")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue