Skip to content

Commit

Permalink
Homepage test now just asserts isinstance(x, int) - closes #2092
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 26, 2023
1 parent b5647eb commit d7aa14b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_api.py
Expand Up @@ -32,14 +32,12 @@ async def test_homepage(ds_client):
assert data.keys() == {"fixtures": 0}.keys()
d = data["fixtures"]
assert d["name"] == "fixtures"
assert d["tables_count"] == 24
assert len(d["tables_and_views_truncated"]) == 5
assert isinstance(d["tables_count"], int)
assert isinstance(len(d["tables_and_views_truncated"]), int)
assert d["tables_and_views_more"] is True
# 4 hidden FTS tables + no_primary_key (hidden in metadata)
assert d["hidden_tables_count"] == 6
# 201 in no_primary_key, plus 6 in other hidden tables:
assert d["hidden_table_rows_sum"] == 207, data
assert d["views_count"] == 4
assert isinstance(d["hidden_tables_count"], int)
assert isinstance(d["hidden_table_rows_sum"], int)
assert isinstance(d["views_count"], int)


@pytest.mark.asyncio
Expand Down

0 comments on commit d7aa14b

Please sign in to comment.