mirror of
https://github.com/simonw/datasette.git
synced 2026-06-06 17:16:57 +02:00
Fix test assertions broken by new fixture rows in 170f9de
The render_cell pks parameter commit added rows to compound_primary_key (2->3 rows) and no_primary_key (201->202 rows) tables but did not update existing tests that had hardcoded row count expectations. https://claude.ai/code/session_01XfPSZfK57bzRRiEa7Kz5n1
This commit is contained in:
parent
170f9de774
commit
51e341b06a
3 changed files with 17 additions and 10 deletions
|
|
@ -182,7 +182,7 @@ async def test_database_page(ds_client):
|
|||
# -- compound primary keys
|
||||
compound_pk = tables_by_name["compound_primary_key"]
|
||||
assert compound_pk["primary_keys"] == ["pk1", "pk2"]
|
||||
assert compound_pk["count"] == 2
|
||||
assert compound_pk["count"] == 3
|
||||
|
||||
compound_three = tables_by_name["compound_three_primary_keys"]
|
||||
assert compound_three["primary_keys"] == ["pk1", "pk2", "pk3"]
|
||||
|
|
@ -196,7 +196,7 @@ async def test_database_page(ds_client):
|
|||
# -- no_primary_key: hidden table with generated data
|
||||
no_pk = tables_by_name["no_primary_key"]
|
||||
assert no_pk["hidden"] is True
|
||||
assert no_pk["count"] == 201
|
||||
assert no_pk["count"] == 202
|
||||
assert no_pk["primary_keys"] == []
|
||||
|
||||
# -- roadside attractions relationship chain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue