mirror of
https://github.com/simonw/datasette.git
synced 2026-06-06 09:07:00 +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
|
|
@ -597,6 +597,12 @@ async def test_table_html_compound_primary_key(ds_client):
|
|||
'<td class="col-pk2 type-str">.c-d</td>',
|
||||
'<td class="col-content type-str">c</td>',
|
||||
],
|
||||
[
|
||||
'<td class="col-Link type-pk"><a href="/fixtures/compound_primary_key/d,e">d,e</a></td>',
|
||||
'<td class="col-pk1 type-str">d</td>',
|
||||
'<td class="col-pk2 type-str">e</td>',
|
||||
'<td class="col-content type-str">{"row": {"pk1": "d", "pk2": "e", "content": "RENDER_CELL_DEMO"}, "column": "content", "table": "compound_primary_key", "database": "fixtures", "pks": ["pk1", "pk2"], "config": {"depth": "database"}}</td>',
|
||||
],
|
||||
]
|
||||
assert [
|
||||
[str(td) for td in tr.select("td")] for tr in table.select("tbody tr")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue