mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Test is no longer order dependent, closes #1123
This commit is contained in:
parent
a45a3dff3e
commit
13c960c03b
1 changed files with 4 additions and 2 deletions
|
|
@ -797,9 +797,11 @@ def test_hook_table_actions(app_client, table_or_view):
|
||||||
assert get_table_actions_links(response.text) == []
|
assert get_table_actions_links(response.text) == []
|
||||||
|
|
||||||
response_2 = app_client.get(f"/fixtures/{table_or_view}?_bot=1")
|
response_2 = app_client.get(f"/fixtures/{table_or_view}?_bot=1")
|
||||||
assert get_table_actions_links(response_2.text) == [
|
assert sorted(
|
||||||
{"label": "From async", "href": "/"},
|
get_table_actions_links(response_2.text), key=lambda l: l["label"]
|
||||||
|
) == [
|
||||||
{"label": "Database: fixtures", "href": "/"},
|
{"label": "Database: fixtures", "href": "/"},
|
||||||
|
{"label": "From async", "href": "/"},
|
||||||
{"label": f"Table: {table_or_view}", "href": "/"},
|
{"label": f"Table: {table_or_view}", "href": "/"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue