mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
simple_primary_key now uses integer id, helps close #2458
This commit is contained in:
parent
d48e5ae0ce
commit
4dff846271
7 changed files with 72 additions and 60 deletions
|
|
@ -355,7 +355,7 @@ async def test_row_html_simple_primary_key(ds_client):
|
|||
assert ["id", "content"] == [th.string.strip() for th in table.select("thead th")]
|
||||
assert [
|
||||
[
|
||||
'<td class="col-id type-str">1</td>',
|
||||
'<td class="col-id type-int">1</td>',
|
||||
'<td class="col-content type-str">hello</td>',
|
||||
]
|
||||
] == [[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