mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
df88d03298
commit
90d1be9952
4 changed files with 18 additions and 7 deletions
|
|
@ -28,7 +28,7 @@ def test_homepage(app_client_two_attached_databases):
|
|||
)
|
||||
# Should be two attached databases
|
||||
assert [
|
||||
{"href": "/extra~20database", "text": "extra database"},
|
||||
{"href": "/extra+database", "text": "extra database"},
|
||||
{"href": "/fixtures", "text": "fixtures"},
|
||||
] == [{"href": a["href"], "text": a.text.strip()} for a in soup.select("h2 a")]
|
||||
# Database should show count text and attached tables
|
||||
|
|
@ -43,8 +43,8 @@ def test_homepage(app_client_two_attached_databases):
|
|||
{"href": a["href"], "text": a.text.strip()} for a in links_p.findAll("a")
|
||||
]
|
||||
assert [
|
||||
{"href": r"/extra~20database/searchable", "text": "searchable"},
|
||||
{"href": r"/extra~20database/searchable_view", "text": "searchable_view"},
|
||||
{"href": r"/extra+database/searchable", "text": "searchable"},
|
||||
{"href": r"/extra+database/searchable_view", "text": "searchable_view"},
|
||||
] == table_links
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue