table_config instead of table_metadata (#2257)

Table configuration that was incorrectly placed in metadata is now treated as if it was in config.

New await datasette.table_config() method.

Closes #2247
This commit is contained in:
Simon Willison 2024-02-06 21:57:09 -08:00 committed by GitHub
commit 60c6692f68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 175 additions and 30 deletions

View file

@ -753,7 +753,7 @@ async def test_metadata_json_html(ds_client):
response = await ds_client.get("/-/metadata")
assert response.status_code == 200
pre = Soup(response.content, "html.parser").find("pre")
assert METADATA == json.loads(pre.text)
assert ds_client.ds.metadata() == json.loads(pre.text)
@pytest.mark.asyncio