mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
No longer include database hash in hyperlinks
It was making the unit tests unreliable. Also we do not do that for foreign key links.
This commit is contained in:
parent
7db790fbf9
commit
ae94006809
2 changed files with 7 additions and 10 deletions
|
|
@ -448,15 +448,15 @@ def test_table_html_simple_primary_key(app_client):
|
|||
] == [th.string for th in table.select('thead th')]
|
||||
assert [
|
||||
[
|
||||
'<td><a href="/test_tables-c0e2850/simple_primary_key/1">1</a></td>',
|
||||
'<td><a href="/test_tables/simple_primary_key/1">1</a></td>',
|
||||
'<td>1</td>',
|
||||
'<td>hello</td>'
|
||||
], [
|
||||
'<td><a href="/test_tables-c0e2850/simple_primary_key/2">2</a></td>',
|
||||
'<td><a href="/test_tables/simple_primary_key/2">2</a></td>',
|
||||
'<td>2</td>',
|
||||
'<td>world</td>'
|
||||
], [
|
||||
'<td><a href="/test_tables-c0e2850/simple_primary_key/3">3</a></td>',
|
||||
'<td><a href="/test_tables/simple_primary_key/3">3</a></td>',
|
||||
'<td>3</td>',
|
||||
'<td></td>'
|
||||
]
|
||||
|
|
@ -485,7 +485,7 @@ def test_table_html_no_primary_key(app_client):
|
|||
] == [th.string for th in table.select('thead th')]
|
||||
expected = [
|
||||
[
|
||||
'<td><a href="/test_tables-c0e2850/no_primary_key/{}">{}</a></td>'.format(i, i),
|
||||
'<td><a href="/test_tables/no_primary_key/{}">{}</a></td>'.format(i, i),
|
||||
'<td>{}</td>'.format(i),
|
||||
'<td>{}</td>'.format(i),
|
||||
'<td>a{}</td>'.format(i),
|
||||
|
|
@ -522,7 +522,7 @@ def test_table_html_compound_primary_key(app_client):
|
|||
] == [th.string for th in table.select('thead th')]
|
||||
expected = [
|
||||
[
|
||||
'<td><a href="/test_tables-c0e2850/compound_primary_key/a,b">a,b</a></td>',
|
||||
'<td><a href="/test_tables/compound_primary_key/a,b">a,b</a></td>',
|
||||
'<td>a</td>',
|
||||
'<td>b</td>',
|
||||
'<td>c</td>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue