mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Move non-metadata configuration from metadata.yaml to datasette.yaml
* Allow and permission blocks moved to datasette.yaml * Documentation updates, initial framework for configuration reference
This commit is contained in:
parent
4e1188f60f
commit
35deaabcb1
22 changed files with 595 additions and 493 deletions
|
|
@ -833,7 +833,7 @@ async def test_hook_canned_queries_actor(ds_client):
|
|||
def test_hook_register_magic_parameters(restore_working_directory):
|
||||
with make_app_client(
|
||||
extra_databases={"data.db": "create table logs (line text)"},
|
||||
metadata={
|
||||
config={
|
||||
"databases": {
|
||||
"data": {
|
||||
"queries": {
|
||||
|
|
@ -863,7 +863,7 @@ def test_hook_register_magic_parameters(restore_working_directory):
|
|||
def test_hook_forbidden(restore_working_directory):
|
||||
with make_app_client(
|
||||
extra_databases={"data2.db": "create table logs (line text)"},
|
||||
metadata={"allow": {}},
|
||||
config={"allow": {}},
|
||||
) as client:
|
||||
response = client.get("/")
|
||||
assert response.status_code == 403
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue