Skip to content

Commit

Permalink
Test is no longer order dependent, closes #1123
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Dec 3, 2020
1 parent a45a3df commit 13c960c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_plugins.py
Expand Up @@ -797,9 +797,11 @@ def get_table_actions_links(html):
assert get_table_actions_links(response.text) == []

response_2 = app_client.get(f"/fixtures/{table_or_view}?_bot=1")
assert get_table_actions_links(response_2.text) == [
{"label": "From async", "href": "/"},
assert sorted(
get_table_actions_links(response_2.text), key=lambda l: l["label"]
) == [
{"label": "Database: fixtures", "href": "/"},
{"label": "From async", "href": "/"},
{"label": f"Table: {table_or_view}", "href": "/"},
]

Expand Down

0 comments on commit 13c960c

Please sign in to comment.