mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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:
parent
52a1dac5d2
commit
60c6692f68
6 changed files with 175 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue