Fixed bug where metadata.json hidden tables were ignored

This commit is contained in:
Simon Willison 2019-05-01 17:54:48 -07:00
commit 50d2d1aac9
3 changed files with 18 additions and 9 deletions

View file

@ -26,8 +26,10 @@ def test_homepage(app_client):
assert d["tables_count"] == 25
assert len(d["tables_truncated"]) == 5
assert d["tables_more"] is True
assert d["hidden_table_rows_sum"] == 5
assert d["hidden_tables_count"] == 4
# 4 hidden FTS tables + no_primary_key (hidden in metadata)
assert d["hidden_tables_count"] == 5
# 201 in no_primary_key, plus 5 in other hidden tables:
assert d["hidden_table_rows_sum"] == 206
assert d["views_count"] == 4