mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Rename metadata= to table_config= in facet code, refs #2247
This commit is contained in:
parent
1e901aa690
commit
5a63ecc557
3 changed files with 23 additions and 24 deletions
|
|
@ -82,7 +82,7 @@ async def test_column_facet_suggest_skip_if_enabled_by_metadata(ds_client):
|
|||
database="fixtures",
|
||||
sql="select * from facetable",
|
||||
table="facetable",
|
||||
metadata={"facets": ["_city_id"]},
|
||||
table_config={"facets": ["_city_id"]},
|
||||
)
|
||||
suggestions = [s["name"] for s in await facet.suggest()]
|
||||
assert [
|
||||
|
|
@ -278,7 +278,7 @@ async def test_column_facet_from_metadata_cannot_be_hidden(ds_client):
|
|||
database="fixtures",
|
||||
sql="select * from facetable",
|
||||
table="facetable",
|
||||
metadata={"facets": ["_city_id"]},
|
||||
table_config={"facets": ["_city_id"]},
|
||||
)
|
||||
buckets, timed_out = await facet.facet_results()
|
||||
assert [] == timed_out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue