mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Move Metadata to --internal database
Refs: - https://github.com/simonw/datasette/pull/2343 - https://github.com/simonw/datasette/issues/2341
This commit is contained in:
parent
8f9509f00c
commit
e1bfab3fca
22 changed files with 286 additions and 214 deletions
|
|
@ -159,8 +159,8 @@ def test_metadata_yaml():
|
|||
internal=None,
|
||||
)
|
||||
client = _TestClient(ds)
|
||||
response = client.get("/-/metadata.json")
|
||||
assert {"title": "Hello from YAML"} == response.json
|
||||
response = client.get("/.json")
|
||||
assert {"title": "Hello from YAML"} == response.json["metadata"]
|
||||
|
||||
|
||||
@mock.patch("datasette.cli.run_module")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue